home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Reference / the MacTech Archives / MacTech Vol 13-1997 < prev    next >
MacBinary  |  1997-05-06  |  3.6 MB  |  [Guid/DanR]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: MacTech Vol 13-1997

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue May 6 12:44:25 1997, modified Tue May 6 13:58:11 1997, creator 'DanR', type 'Guid', 1396260 bytes "MacTech Vol 13-1997" , at 0x154ea4 2418981 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[Guid]
macFileCreator[DanR]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 4d 61 63 54 65 63 | 68 20 56 6f 6c 20 31 33 |..MacTec|h Vol 13|
|00000010| 2d 31 39 39 37 00 00 00 | 00 00 00 00 00 00 00 00 |-1997...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 47 75 69 64 44 61 6e | 52 01 00 00 00 00 00 00 |.GuidDan|R.......|
|00000050| 00 00 00 00 15 4e 24 00 | 24 e9 25 af 95 10 69 af |.....N$.|$.%...i.|
|00000060| 95 21 b3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.!......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a4 f1 00 00 |........|........|
|00000080| 4e 47 4d 43 00 5d 44 52 | 00 00 00 00 00 18 42 65 |NGMC.]DR|......Be|
|00000090| 4f 53 20 50 6c 75 67 20 | 49 6e 20 54 72 61 6e 73 |OS Plug |In Trans|
|000000a0| 6c 61 74 6f 72 73 00 ff | 02 23 00 00 00 0c 00 09 |lators..|.#......|
|000000b0| 00 12 c3 56 6f 6c 75 6d | 65 20 4e 75 6d 62 65 72 |...Volum|e Number|
|000000c0| 3a 97 31 33 00 00 00 18 | 00 09 00 10 c3 49 73 73 |:.13....|.....Iss|
|000000d0| 75 65 20 4e 75 6d 62 65 | 72 3a a2 31 00 00 00 24 |ue Numbe|r:.1...$|
|000000e0| 00 09 00 15 c3 43 6f 6c | 75 6d 6e 20 54 61 67 3a |.....Col|umn Tag:|
|000000f0| b0 42 65 74 65 63 68 ff | aa 00 00 00 00 62 00 09 |.Betech.|.....b..|
|00000100| 00 17 c4 42 65 4f 53 20 | 50 6c 75 67 2d 69 6e 73 |...BeOS |Plug-ins|
|00000110| 20 80 01 32 f0 00 80 00 | 75 00 00 00 00 7a 00 09 | ..2....|u....z..|
|00000120| 00 36 c3 45 61 73 79 20 | 69 6d 61 67 65 20 69 6d |.6.Easy |image im|
|00000130| 70 6f 72 74 20 75 73 69 | 6e 67 20 74 68 65 20 42 |port usi|ng the B|
|00000140| 65 4f 53 20 70 6c 75 67 | 2d 69 6e 20 61 72 63 68 |eOS plug|-in arch|
|00000150| 69 74 65 63 74 75 72 65 | 00 00 00 8e 00 09 00 1b |itecture|........|
|00000160| c5 42 79 20 57 69 6c 6c | 69 61 6d 20 41 64 61 6d |.By Will|iam Adam|
|00000170| 73 2c 20 42 65 2c 20 49 | 6e 63 2e 00 00 00 00 b1 |s, Be, I|nc......|
|00000180| 00 09 00 55 c5 f0 00 81 | 00 12 20 4e 6f 74 65 3a |...U....|.. Note:|
|00000190| 20 20 53 6f 75 72 63 65 | 20 63 6f 64 65 20 66 69 | Source| code fi|
|000001a0| 6c 65 73 20 61 63 63 6f | 6d 70 61 6e 79 69 6e 67 |les acco|mpanying|
|000001b0| 20 61 72 74 69 63 6c 65 | 20 61 72 65 20 6c 6f 63 | article| are loc|
|000001c0| 61 74 65 64 20 6f 6e 20 | 4d 61 63 54 65 63 68 20 |ated on |MacTech |
|000001d0| 43 44 2d 52 4f 4d 20 6f | 72 00 00 00 00 bd 00 09 |CD-ROM o|r.......|
|000001e0| 00 13 c5 73 6f 75 72 63 | 65 20 63 6f 64 65 20 64 |...sourc|e code d|
|000001f0| 69 73 6b 73 2e 00 00 00 | 00 e2 00 b8 00 0d c3 49 |isks....|.......I|
|00000200| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 00 00 00 00 f8 |ntroduct|ion.....|
|00000210| 00 24 00 51 c2 54 68 65 | 20 63 6f 6d 70 75 74 65 |.$.Q.The| compute|
|00000220| 72 20 73 6f 66 74 77 61 | 72 65 20 69 6e 64 75 73 |r softwa|re indus|
|00000230| 74 72 79 20 69 73 20 70 | 72 6f 6e 65 20 74 6f 20 |try is p|rone to |
|00000240| 69 6e 74 65 72 67 61 6c | 61 63 74 69 63 20 70 61 |intergal|actic pa|
|00000250| 72 61 64 69 67 6d 20 73 | 68 69 66 74 73 2e 20 57 |radigm s|hifts. W|
|00000260| 68 65 6e 20 61 00 00 00 | 01 04 00 09 00 56 c2 63 |hen a...|.....V.c|
|00000270| 6f 6d 70 61 6e 79 20 63 | 6f 6d 65 73 20 6f 75 74 |ompany c|omes out|
|00000280| 20 77 69 74 68 20 73 6f | 6d 65 74 68 69 6e 67 20 | with so|mething |
|00000290| 6e 65 77 2c 20 61 6e 64 | 20 74 68 65 79 20 77 61 |new, and| they wa|
|000002a0| 6e 74 20 74 6f 20 6d 61 | 6b 65 20 61 20 6c 6f 74 |nt to ma|ke a lot|
|000002b0| 20 6f 66 20 6d 6f 6e 65 | 79 2c 20 74 68 65 79 20 | of mone|y, they |
|000002c0| 63 61 6c 6c 00 00 01 10 | 00 09 00 57 c2 69 74 20 |call....|...W.it |
|000002d0| 61 20 70 61 72 61 64 69 | 67 6d 20 73 68 69 66 74 |a paradi|gm shift|
|000002e0| 2e 20 54 68 69 73 20 69 | 73 20 6f 66 74 65 6e 20 |. This i|s often |
|000002f0| 61 20 63 6f 64 65 20 77 | 6f 72 64 20 74 68 61 74 |a code w|ord that|
|00000300| 20 73 61 79 73 3a 20 77 | 65 20 68 61 76 65 20 73 | says: w|e have s|
|00000310| 6f 6d 65 74 68 69 6e 67 | 20 74 68 61 74 20 69 73 |omething| that is|
|00000320| 20 73 6f 00 00 00 01 1c | 00 09 00 59 c2 64 69 66 | so.....|...Y.dif|
|00000330| 66 65 72 65 6e 74 20 66 | 72 6f 6d 20 65 76 65 72 |ferent f|rom ever|
|00000340| 79 74 68 69 6e 67 20 65 | 6c 73 65 2c 20 69 74 ff |ything e|lse, it.|
|00000350| d5 73 20 61 63 74 75 61 | 6c 6c 79 20 64 69 66 66 |.s actua|lly diff|
|00000360| 69 63 75 6c 74 20 74 6f | 20 6c 65 61 72 6e 2c 20 |icult to| learn, |
|00000370| 62 75 74 20 77 65 20 73 | 70 65 6e 74 20 61 20 6c |but we s|pent a l|
|00000380| 6f 74 20 6f 66 00 00 00 | 01 28 00 09 00 39 c2 6d |ot of...|.(...9.m|
|00000390| 6f 6e 65 79 20 70 72 6f | 64 75 63 69 6e 67 20 69 |oney pro|ducing i|
|000003a0| 74 2c 20 73 6f 20 77 65 | 20 61 72 65 20 63 61 6c |t, so we| are cal|
|000003b0| 6c 69 6e 67 20 69 74 20 | 61 20 6e 65 77 20 70 61 |ling it |a new pa|
|000003c0| 72 61 64 69 67 6d 2e 00 | 00 00 01 39 00 24 00 50 |radigm..|...9.$.P|
|000003d0| c2 50 61 72 61 64 69 67 | 6d 20 73 68 69 66 74 73 |.Paradig|m shifts|
|000003e0| 20 61 72 65 20 6e 6f 74 | 20 61 6c 77 61 79 73 20 | are not| always |
|000003f0| 64 69 66 66 69 63 75 6c | 74 2e 20 57 68 65 6e 20 |difficul|t. When |
|00000400| 58 65 72 6f 78 20 69 6e | 76 65 6e 74 65 64 20 61 |Xerox in|vented a|
|00000410| 20 c5 77 69 6e 64 6f 77 | 73 20 c2 62 61 73 65 64 | .window|s .based|
|00000420| 00 00 01 45 00 09 00 5b | c2 69 6e 74 65 72 66 61 |...E...[|.interfa|
|00000430| 63 65 20 74 68 61 74 20 | 75 74 69 6c 69 7a 65 64 |ce that |utilized|
|00000440| 20 61 20 6d 6f 75 73 65 | 2c 20 79 6f 75 20 63 6f | a mouse|, you co|
|00000450| 75 6c 64 20 63 61 6c 6c | 20 74 68 69 73 20 61 20 |uld call| this a |
|00000460| 70 61 72 61 64 69 67 6d | 20 73 68 69 66 74 2e 20 |paradigm| shift. |
|00000470| 49 74 20 73 68 61 72 70 | 6c 79 20 64 69 76 65 72 |It sharp|ly diver|
|00000480| 67 65 64 00 00 00 01 51 | 00 09 00 54 c2 66 72 6f |ged....Q|...T.fro|
|00000490| 6d 20 74 68 65 20 74 72 | 61 64 69 74 69 6f 6e 61 |m the tr|aditiona|
|000004a0| 6c 20 74 65 78 74 2d 62 | 61 73 65 64 2c 20 6b 65 |l text-b|ased, ke|
|000004b0| 79 62 6f 61 72 64 20 62 | 6f 75 6e 64 20 69 6e 74 |yboard b|ound int|
|000004c0| 65 72 66 61 63 65 20 6f | 66 20 74 68 65 20 64 61 |erface o|f the da|
|000004d0| 79 20 61 6e 64 20 70 72 | 6f 76 69 64 65 64 20 61 |y and pr|ovided a|
|000004e0| 00 00 01 5d 00 09 00 57 | c2 6d 65 74 68 6f 64 20 |...]...W|.method |
|000004f0| 6f 66 20 69 6e 74 65 72 | 61 63 74 69 6f 6e 20 77 |of inter|action w|
|00000500| 69 74 68 20 63 6f 6d 70 | 75 74 65 72 73 20 74 68 |ith comp|uters th|
|00000510| 61 74 20 77 61 73 20 65 | 61 73 69 65 72 20 61 6e |at was e|asier an|
|00000520| 64 20 66 61 73 74 65 72 | 20 66 6f 72 20 6d 61 6e |d faster| for man|
|00000530| 79 20 75 73 65 72 73 2e | 20 49 66 20 79 6f 75 00 |y users.| If you.|
|00000540| 00 00 01 69 00 09 00 56 | c2 63 61 6e 6e 6f 74 20 |...i...V|.cannot |
|00000550| 67 65 74 20 61 20 70 61 | 72 61 64 69 67 6d 20 61 |get a pa|radigm a|
|00000560| 64 6f 70 74 65 64 2c 20 | 28 69 74 20 62 65 63 6f |dopted, |(it beco|
|00000570| 6d 65 73 20 74 6f 6f 20 | 65 78 70 65 6e 73 69 76 |mes too |expensiv|
|00000580| 65 20 64 75 65 20 74 6f | 20 6c 65 61 72 6e 61 62 |e due to| learnab|
|00000590| 69 6c 69 74 79 20 6f 72 | 20 6f 74 68 65 72 00 00 |ility or| other..|
|000005a0| 01 75 00 09 00 22 c2 66 | 61 63 74 6f 72 73 29 20 |.u...".f|actors) |
|000005b0| 69 74 20 69 73 20 77 6f | 72 74 68 20 61 62 6f 75 |it is wo|rth abou|
|000005c0| 74 20 24 30 2e 32 30 2e | 00 00 01 86 00 24 00 4c |t $0.20.|.....$.L|
|000005d0| c2 50 43 ff d5 73 20 61 | 6e 64 20 6d 61 69 6e 73 |.PC..s a|nd mains|
|000005e0| 74 72 65 61 6d 20 6f 70 | 65 72 61 74 69 6e 67 20 |tream op|erating |
|000005f0| 73 79 73 74 65 6d 73 20 | 68 61 76 65 20 62 65 65 |systems |have bee|
|00000600| 6e 20 61 72 6f 75 6e 64 | 20 66 6f 72 20 61 62 6f |n around| for abo|
|00000610| 75 74 20 31 35 20 79 65 | 61 72 73 2e 00 00 01 92 |ut 15 ye|ars.....|
|00000620| 00 09 00 57 c2 54 68 69 | 73 20 69 73 20 61 6c 73 |...W.Thi|s is als|
|00000630| 6f 20 74 72 75 65 20 66 | 6f 72 20 73 6f 6d 65 20 |o true f|or some |
|00000640| 6f 66 20 74 68 65 20 68 | 61 72 64 77 61 72 65 20 |of the h|ardware |
|00000650| 74 68 61 74 20 73 75 70 | 70 6f 72 74 73 20 74 68 |that sup|ports th|
|00000660| 65 6d 2e 20 54 68 65 20 | 6f 70 65 72 61 74 69 6e |em. The |operatin|
|00000670| 67 20 73 79 73 74 65 6d | 20 69 73 00 00 00 01 9e |g system| is.....|
|00000680| 00 09 00 59 c2 61 20 63 | 72 61 66 74 79 20 6c 69 |...Y.a c|rafty li|
|00000690| 74 74 6c 65 20 70 69 65 | 63 65 20 6f 66 20 73 6f |ttle pie|ce of so|
|000006a0| 66 74 77 61 72 65 20 74 | 68 61 74 20 6d 6f 73 74 |ftware t|hat most|
|000006b0| 20 65 6e 64 20 75 73 65 | 72 73 20 73 68 6f 75 6c | end use|rs shoul|
|000006c0| 64 20 6e 6f 74 20 63 61 | 72 65 20 6d 75 63 68 20 |d not ca|re much |
|000006d0| 61 62 6f 75 74 20 20 62 | 65 79 6f 6e 64 00 00 00 |about b|eyond...|
|000006e0| 01 aa 00 09 00 4f c2 74 | 68 65 20 65 78 74 65 6e |.....O.t|he exten|
|000006f0| 74 20 74 68 61 74 20 69 | 74 20 65 6e 61 62 6c 65 |t that i|t enable|
|00000700| 73 20 74 68 65 6d 20 74 | 6f 20 67 6f 20 61 62 6f |s them t|o go abo|
|00000710| 75 74 20 64 6f 69 6e 67 | 20 74 68 65 69 72 20 77 |ut doing| their w|
|00000720| 6f 72 6b 20 65 66 66 69 | 63 69 65 6e 74 6c 79 2e |ork effi|ciently.|
|00000730| 20 54 6f 20 61 00 00 00 | 01 b6 00 09 00 55 c2 70 | To a...|.....U.p|
|00000740| 72 6f 67 72 61 6d 6d 65 | 72 2c 20 74 68 65 20 6f |rogramme|r, the o|
|00000750| 70 65 72 61 74 69 6e 67 | 20 73 79 73 74 65 6d 20 |perating| system |
|00000760| 73 68 6f 75 6c 64 20 6d | 61 6b 65 20 69 74 20 65 |should m|ake it e|
|00000770| 61 73 79 20 74 6f 20 63 | 72 65 61 74 65 20 63 6f |asy to c|reate co|
|00000780| 6d 70 65 6c 6c 69 6e 67 | 20 61 6e 64 20 75 73 65 |mpelling| and use|
|00000790| 66 75 6c 00 00 00 01 c2 | 00 09 00 57 c2 73 6f 66 |ful.....|...W.sof|
|000007a0| 74 77 61 72 65 20 77 69 | 74 68 20 74 68 65 20 6c |tware wi|th the l|
|000007b0| 65 61 73 74 20 61 6d 6f | 75 6e 74 20 6f 66 20 65 |east amo|unt of e|
|000007c0| 66 66 6f 72 74 2e 20 49 | 74 20 73 68 6f 75 6c 64 |ffort. I|t should|
|000007d0| 20 72 75 6e 20 74 68 65 | 20 73 6f 66 74 77 61 72 | run the| softwar|
|000007e0| 65 20 61 73 20 65 66 66 | 69 63 69 65 6e 74 6c 79 |e as eff|iciently|
|000007f0| 20 61 73 00 00 00 01 ce | 00 09 00 56 c2 70 6f 73 | as.....|...V.pos|
|00000800| 73 69 62 6c 65 20 6f 6e | 20 61 6e 79 20 74 61 72 |sible on| any tar|
|00000810| 67 65 74 65 64 20 68 61 | 72 64 77 61 72 65 20 70 |geted ha|rdware p|
|00000820| 6c 61 74 66 6f 72 6d 2e | 20 49 74 20 6d 75 73 74 |latform.| It must|
|00000830| 20 62 65 20 66 6c 65 78 | 69 62 6c 65 20 61 6e 64 | be flex|ible and|
|00000840| 20 64 79 6e 61 6d 69 63 | 20 65 6e 6f 75 67 68 20 | dynamic| enough |
|00000850| 74 6f 00 00 01 da 00 09 | 00 54 c2 61 64 61 70 74 |to......|.T.adapt|
|00000860| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 61 73 20 74 | and cha|nge as t|
|00000870| 69 6d 65 20 70 72 6f 67 | 72 65 73 73 65 73 20 73 |ime prog|resses s|
|00000880| 6f 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 64 |o applic|ations d|
|00000890| 6f 20 6e 6f 74 20 62 65 | 67 69 6e 20 74 6f 20 72 |o not be|gin to r|
|000008a0| 75 6e 20 73 6c 6f 77 65 | 72 20 77 69 74 68 00 00 |un slowe|r with..|
|000008b0| 01 e6 00 09 00 0e c2 65 | 61 63 68 20 72 65 6c 65 |.......e|ach rele|
|000008c0| 61 73 65 2e 00 00 01 f7 | 00 24 00 4e c2 54 68 65 |ase.....|.$.N.The|
|000008d0| 20 63 6f 6d 6d 6f 64 69 | 74 79 20 73 6f 66 74 77 | commodi|ty softw|
|000008e0| 61 72 65 20 6d 61 72 6b | 65 74 20 69 73 20 73 74 |are mark|et is st|
|000008f0| 69 6c 6c 20 76 65 72 79 | 20 79 6f 75 6e 67 2c 20 |ill very| young, |
|00000900| 77 69 74 68 20 6f 6e 6c | 79 20 31 35 20 79 65 61 |with onl|y 15 yea|
|00000910| 72 73 20 6f 66 20 72 65 | 61 6c 00 00 02 03 00 09 |rs of re|al......|
|00000920| 00 54 c2 63 6f 6d 6d 65 | 72 63 69 61 6c 20 67 72 |.T.comme|rcial gr|
|00000930| 6f 77 74 68 2e 20 54 68 | 69 73 20 79 6f 75 74 68 |owth. Th|is youth|
|00000940| 20 69 73 20 6d 6f 73 74 | 20 65 76 69 64 65 6e 74 | is most| evident|
|00000950| 20 69 6e 20 74 68 65 20 | 73 79 73 74 65 6d 73 20 | in the |systems |
|00000960| 74 68 61 74 20 77 65 72 | 65 20 61 76 61 69 6c 61 |that wer|e availa|
|00000970| 62 6c 65 20 61 74 00 00 | 02 0f 00 09 00 53 c2 74 |ble at..|.....S.t|
|00000980| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|00000990| 74 68 61 74 20 70 65 72 | 69 6f 64 2e 20 54 68 65 |that per|iod. The|
|000009a0| 20 6d 61 63 68 69 6e 65 | 73 20 6f 66 20 74 68 65 | machine|s of the|
|000009b0| 20 64 61 79 20 77 65 72 | 65 20 70 69 74 69 66 75 | day wer|e pitifu|
|000009c0| 6c 6c 79 20 73 6c 6f 77 | 20 61 6e 64 20 76 65 72 |lly slow| and ver|
|000009d0| 79 00 00 00 02 1b 00 09 | 00 4c c2 63 6f 6e 73 74 |y.......|.L.const|
|000009e0| 72 61 69 6e 65 64 20 62 | 79 20 72 65 73 6f 75 72 |rained b|y resour|
|000009f0| 63 65 73 20 73 75 63 68 | 20 61 73 20 52 41 4d 20 |ces such| as RAM |
|00000a00| 61 6e 64 20 64 69 73 6b | 20 73 70 61 63 65 2e 20 |and disk| space. |
|00000a10| 41 74 20 74 68 65 20 74 | 69 6d 65 2c 20 61 20 6e |At the t|ime, a n|
|00000a20| 65 74 77 6f 72 6b 00 00 | 02 27 00 09 00 50 c2 63 |etwork..|.'...P.c|
|00000a30| 6f 6e 6e 65 63 74 69 6f | 6e 20 77 61 73 20 61 20 |onnectio|n was a |
|00000a40| 33 30 30 20 62 61 75 64 | 20 6d 6f 64 65 6d 20 6c |300 baud| modem l|
|00000a50| 69 6e 6b 65 64 20 74 6f | 20 61 20 74 69 6d 65 73 |inked to| a times|
|00000a60| 68 61 72 69 6e 67 20 73 | 79 73 74 65 6d 2e 20 54 |haring s|ystem. T|
|00000a70| 43 50 2f 49 50 20 70 72 | 6f 74 6f 63 6f 6c 00 00 |CP/IP pr|otocol..|
|00000a80| 02 33 00 09 00 56 c2 73 | 74 61 63 6b 73 20 61 6e |.3...V.s|tacks an|
|00000a90| 64 20 45 74 68 65 72 6e | 65 74 20 63 61 72 64 73 |d Ethern|et cards|
|00000aa0| 20 77 65 72 65 20 6d 65 | 72 65 6c 79 20 63 68 61 | were me|rely cha|
|00000ab0| 6c 6b 20 64 75 73 74 2e | 20 47 69 76 65 6e 20 74 |lk dust.| Given t|
|00000ac0| 68 69 73 20 63 72 75 63 | 69 62 6c 65 20 6f 66 20 |his cruc|ible of |
|00000ad0| 64 65 76 65 6c 6f 70 6d | 65 6e 74 2c 00 00 02 3f |developm|ent,...?|
|00000ae0| 00 09 00 4e c2 69 74 ff | d5 73 20 6e 6f 20 77 6f |...N.it.|.s no wo|
|00000af0| 6e 64 65 72 20 74 68 61 | 74 20 77 68 65 6e 20 74 |nder tha|t when t|
|00000b00| 68 65 73 65 20 6e 65 77 | 20 74 65 63 68 6e 6f 6c |hese new| technol|
|00000b10| 6f 67 69 65 73 20 62 65 | 67 61 6e 20 74 6f 20 73 |ogies be|gan to s|
|00000b20| 68 6f 77 20 75 70 2c 20 | 74 68 65 20 4f 53 20 61 |how up, |the OS a|
|00000b30| 6e 64 00 00 02 4b 00 09 | 00 56 c2 70 72 6f 67 72 |nd...K..|.V.progr|
|00000b40| 61 6d 6d 69 6e 67 20 74 | 6f 6f 6c 73 20 62 65 67 |amming t|ools beg|
|00000b50| 61 6e 20 74 6f 20 67 72 | 6f 77 20 77 61 72 74 73 |an to gr|ow warts|
|00000b60| 2e 20 54 61 63 6b 20 6f | 6e 20 61 20 64 65 76 69 |. Tack o|n a devi|
|00000b70| 63 65 20 64 72 69 76 65 | 72 20 68 65 72 65 2c 20 |ce drive|r here, |
|00000b80| 61 6e 20 45 74 68 65 72 | 6e 65 74 20 63 61 72 64 |an Ether|net card|
|00000b90| 00 00 02 57 00 09 00 5b | c2 74 68 65 72 65 2c 20 |...W...[|.there, |
|00000ba0| 61 6e 64 20 70 72 61 79 | 20 74 68 61 74 20 69 74 |and pray| that it|
|00000bb0| 20 61 6c 6c 20 73 74 69 | 6c 6c 20 77 6f 72 6b 73 | all sti|ll works|
|00000bc0| 2e 20 49 66 20 79 6f 75 | 20 61 72 65 20 61 20 64 |. If you| are a d|
|00000bd0| 65 76 65 6c 6f 70 65 72 | 2c 20 70 72 61 79 20 74 |eveloper|, pray t|
|00000be0| 68 61 74 20 74 68 65 20 | 65 6e 64 20 75 73 65 72 |hat the |end user|
|00000bf0| 20 69 73 00 00 00 02 63 | 00 09 00 30 c2 75 74 69 | is....c|...0.uti|
|00000c00| 6c 69 7a 69 6e 67 20 68 | 61 72 64 77 61 72 65 20 |lizing h|ardware |
|00000c10| 66 6f 72 20 77 68 69 63 | 68 20 79 6f 75 20 68 61 |for whic|h you ha|
|00000c20| 76 65 20 61 20 64 72 69 | 76 65 72 2e 00 00 02 74 |ve a dri|ver....t|
|00000c30| 00 24 00 4e c2 54 68 61 | 6e 6b 66 75 6c 6c 79 2c |.$.N.Tha|nkfully,|
|00000c40| 20 73 79 73 74 65 6d 73 | 20 61 64 61 70 74 2c 20 | systems| adapt, |
|00000c50| 73 74 61 6e 64 61 72 64 | 73 20 65 6d 65 72 67 65 |standard|s emerge|
|00000c60| 2c 20 64 72 69 76 65 72 | 73 20 61 72 65 20 77 72 |, driver|s are wr|
|00000c70| 69 74 74 65 6e 2c 20 61 | 62 73 74 72 61 63 74 69 |itten, a|bstracti|
|00000c80| 6f 6e 00 00 02 80 00 09 | 00 56 c2 6c 61 79 65 72 |on......|.V.layer|
|00000c90| 73 20 61 72 65 20 61 64 | 64 65 64 2c 20 61 6e 64 |s are ad|ded, and|
|00000ca0| 20 70 61 72 61 64 69 67 | 6d 73 20 61 72 65 20 73 | paradig|ms are s|
|00000cb0| 68 69 66 74 65 64 2e 20 | 54 68 65 20 42 65 20 4f |hifted. |The Be O|
|00000cc0| 70 65 72 61 74 69 6e 67 | 20 53 79 73 74 65 6d 20 |perating| System |
|00000cd0| 28 42 65 4f 53 29 20 69 | 73 20 6e 6f 74 20 73 6f |(BeOS) i|s not so|
|00000ce0| 00 00 02 8c 00 09 00 53 | c2 6d 75 63 68 20 61 20 |.......S|.much a |
|00000cf0| 70 61 72 61 64 69 67 6d | 20 73 68 69 66 74 20 61 |paradigm| shift a|
|00000d00| 73 20 69 74 20 69 73 20 | 61 20 63 6f 6e 76 65 72 |s it is |a conver|
|00000d10| 67 65 6e 63 65 2c 20 63 | 6f 6e 73 6f 6c 69 64 61 |gence, c|onsolida|
|00000d20| 74 69 6f 6e 2c 20 61 6e | 64 20 72 65 2d 61 6c 69 |tion, an|d re-ali|
|00000d30| 67 6e 6d 65 6e 74 2e 20 | 54 68 65 00 00 00 02 98 |gnment. |The.....|
|00000d40| 00 09 00 52 c2 65 6e 67 | 69 6e 65 65 72 73 20 61 |...R.eng|ineers a|
|00000d50| 74 20 42 65 20 61 72 65 | 20 61 6c 6c 20 73 74 75 |t Be are| all stu|
|00000d60| 64 65 6e 74 73 20 6f 66 | 20 4f 53 20 64 65 73 69 |dents of| OS desi|
|00000d70| 67 6e 20 61 6e 64 20 41 | 50 49 20 70 72 6f 64 75 |gn and A|PI produ|
|00000d80| 63 74 69 6f 6e 2e 20 42 | 65 20 70 72 65 73 65 6e |ction. B|e presen|
|00000d90| 74 73 20 74 68 65 00 00 | 02 a4 00 09 00 5b c2 6f |ts the..|.....[.o|
|00000da0| 70 70 6f 72 74 75 6e 69 | 74 79 20 74 6f 20 64 6f |pportuni|ty to do|
|00000db0| 20 69 74 20 61 6c 6c 20 | 6f 76 65 72 20 61 67 61 | it all |over aga|
|00000dc0| 69 6e 2e 20 49 6e 20 ff | d2 64 6f 69 6e 67 20 69 |in. In .|.doing i|
|00000dd0| 74 20 72 69 67 68 74 2c | ff d3 20 77 65 20 61 72 |t right,|.. we ar|
|00000de0| 65 20 6e 6f 74 20 6e 65 | 63 65 73 73 61 72 69 6c |e not ne|cessaril|
|00000df0| 79 20 73 65 65 6b 69 6e | 67 00 00 00 02 b0 00 09 |y seekin|g.......|
|00000e00| 00 4d c2 74 6f 20 72 65 | 2d 69 6e 76 65 6e 74 20 |.M.to re|-invent |
|00000e10| 74 68 65 20 77 68 65 65 | 6c 2c 20 6f 6e 6c 79 20 |the whee|l, only |
|00000e20| 74 6f 20 67 65 74 20 74 | 68 65 20 72 69 67 68 74 |to get t|he right|
|00000e30| 20 62 61 6c 61 6e 63 65 | 2e 20 59 6f 75 20 63 61 | balance|. You ca|
|00000e40| 6e 20 76 69 65 77 20 75 | 73 20 61 73 20 4f 53 00 |n view u|s as OS.|
|00000e50| 00 00 02 bc 00 09 00 53 | c2 63 68 69 72 6f 70 72 |.......S|.chiropr|
|00000e60| 61 63 74 6f 72 73 2e 20 | 43 75 72 72 65 6e 74 20 |actors. |Current |
|00000e70| 4f 53 20 6f 66 66 65 72 | 69 6e 67 73 20 61 72 65 |OS offer|ings are|
|00000e80| 20 6c 69 6b 65 20 65 6c | 64 65 72 6c 79 20 67 65 | like el|derly ge|
|00000e90| 6e 74 6c 65 6d 65 6e 20 | 73 61 67 67 69 6e 67 20 |ntlemen |sagging |
|00000ea0| 75 6e 64 65 72 20 74 68 | 65 69 72 00 00 00 02 c8 |under th|eir.....|
|00000eb0| 00 09 00 56 c2 6f 77 6e | 20 77 65 69 67 68 74 2e |...V.own| weight.|
|00000ec0| 20 54 68 69 6e 67 73 20 | 61 72 65 20 6a 75 73 74 | Things |are just|
|00000ed0| 20 61 20 6c 69 74 74 6c | 65 20 6d 69 73 61 6c 69 | a littl|e misali|
|00000ee0| 67 6e 65 64 20 69 6e 20 | 6d 6f 73 74 20 63 6f 6d |gned in |most com|
|00000ef0| 6d 6f 64 69 74 79 20 4f | 53 ff d5 73 2c 20 61 6e |modity O|S..s, an|
|00000f00| 64 20 74 68 65 20 42 65 | 4f 53 00 00 02 d4 00 09 |d the Be|OS......|
|00000f10| 00 18 c2 73 74 72 61 69 | 67 68 74 65 6e 73 20 74 |...strai|ghtens t|
|00000f20| 68 69 6e 67 73 20 6f 75 | 74 2e 00 00 02 e5 00 24 |hings ou|t......$|
|00000f30| 00 51 c2 57 65 20 63 61 | 6e 20 6c 6f 6f 6b 20 61 |.Q.We ca|n look a|
|00000f40| 74 20 74 77 6f 20 76 65 | 72 74 65 62 72 61 65 20 |t two ve|rtebrae |
|00000f50| 6f 66 20 74 68 65 20 74 | 79 70 69 63 61 6c 20 6d |of the t|ypical m|
|00000f60| 69 73 61 6c 69 67 6e 65 | 64 20 4f 53 20 2d 20 6f |isaligne|d OS - o|
|00000f70| 6e 65 20 69 73 20 64 61 | 74 61 20 73 68 61 72 69 |ne is da|ta shari|
|00000f80| 6e 67 2c 00 00 00 02 f1 | 00 09 00 50 c2 74 68 65 |ng,.....|...P.the|
|00000f90| 20 6f 74 68 65 72 20 69 | 73 20 63 6f 6d 6d 61 6e | other i|s comman|
|00000fa0| 64 20 70 72 6f 63 65 73 | 73 69 6e 67 2e 20 46 69 |d proces|sing. Fi|
|00000fb0| 72 73 74 2c 20 6c 65 74 | ff d5 73 20 6c 6f 6f 6b |rst, let|..s look|
|00000fc0| 20 61 74 20 64 61 74 61 | 20 73 68 61 72 69 6e 67 | at data| sharing|
|00000fd0| 2e 20 49 20 68 61 76 65 | 20 6f 6e 65 00 00 02 fd |. I have| one....|
|00000fe0| 00 09 00 51 c2 61 70 70 | 6c 69 63 61 74 69 6f 6e |...Q.app|lication|
|00000ff0| 2c 20 6f 72 20 70 6f 72 | 74 69 6f 6e 20 6f 66 20 |, or por|tion of |
|00001000| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |an appli|cation, |
|00001010| 61 6e 64 20 49 20 77 61 | 6e 74 20 74 6f 20 73 68 |and I wa|nt to sh|
|00001020| 61 72 65 20 64 61 74 61 | 20 77 69 74 68 20 61 6e |are data| with an|
|00001030| 6f 74 68 65 72 00 00 00 | 03 09 00 09 00 59 c2 61 |other...|.....Y.a|
|00001040| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 20 20 41 20 |pplicati|on. A |
|00001050| 74 79 70 69 63 61 6c 20 | 6d 65 74 68 6f 64 20 6f |typical |method o|
|00001060| 66 20 73 68 61 72 69 6e | 67 20 69 73 20 74 68 65 |f sharin|g is the|
|00001070| 20 63 6f 70 79 2f 70 61 | 73 74 65 20 63 6f 6d 62 | copy/pa|ste comb|
|00001080| 69 6e 61 74 69 6f 6e 2e | 20 49 20 6d 69 67 68 74 |ination.| I might|
|00001090| 20 73 65 6c 65 63 74 00 | 00 00 03 15 00 09 00 57 | select.|.......W|
|000010a0| c2 61 20 70 69 65 63 65 | 20 6f 66 20 61 6e 20 69 |.a piece| of an i|
|000010b0| 6d 61 67 65 20 69 6e 20 | 61 20 70 61 69 6e 74 20 |mage in |a paint |
|000010c0| 70 72 6f 67 72 61 6d 20 | 61 6e 64 20 70 61 73 74 |program |and past|
|000010d0| 65 20 69 74 20 69 6e 74 | 6f 20 61 6e 6f 74 68 65 |e it int|o anothe|
|000010e0| 72 2e 20 41 6e 6f 74 68 | 65 72 20 6d 65 74 68 6f |r. Anoth|er metho|
|000010f0| 64 20 69 73 20 74 6f 00 | 00 00 03 21 00 09 00 59 |d is to.|...!...Y|
|00001100| c2 64 72 61 67 20 61 20 | 66 69 6c 65 20 72 65 70 |.drag a |file rep|
|00001110| 72 65 73 65 6e 74 61 74 | 69 6f 6e 20 66 72 6f 6d |resentat|ion from|
|00001120| 20 61 20 66 69 6c 65 20 | 62 72 6f 77 73 65 72 20 | a file |browser |
|00001130| 6f 6e 74 6f 20 74 68 65 | 20 70 61 69 6e 74 20 63 |onto the| paint c|
|00001140| 61 6e 76 61 73 2e 20 41 | 6c 74 65 72 6e 61 74 65 |anvas. A|lternate|
|00001150| 6c 79 2c 20 49 20 6d 61 | 79 00 00 00 03 2d 00 09 |ly, I ma|y....-..|
|00001160| 00 42 c2 72 65 63 65 69 | 76 65 20 61 6e 20 69 6d |.B.recei|ve an im|
|00001170| 61 67 65 20 66 72 6f 6d | 20 61 20 73 65 72 76 65 |age from| a serve|
|00001180| 72 20 70 72 6f 63 65 73 | 73 2c 20 6f 72 20 66 72 |r proces|s, or fr|
|00001190| 6f 6d 20 61 63 72 6f 73 | 73 20 61 20 6e 65 74 77 |om acros|s a netw|
|000011a0| 6f 72 6b 2e 00 00 03 3e | 00 24 00 4e c2 46 6f 72 |ork....>|.$.N.For|
|000011b0| 20 6d 61 6e 79 20 70 72 | 6f 67 72 61 6d 6d 65 72 | many pr|ogrammer|
|000011c0| 73 2c 20 74 68 65 73 65 | 20 76 61 72 69 6f 75 73 |s, these| various|
|000011d0| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 77 6f 75 6c | operati|ons woul|
|000011e0| 64 20 65 61 63 68 20 62 | 65 20 72 65 70 72 65 73 |d each b|e repres|
|000011f0| 65 6e 74 65 64 20 62 79 | 20 61 00 00 03 4a 00 09 |ented by| a...J..|
|00001200| 00 51 c2 64 69 73 74 69 | 6e 63 74 6c 79 20 64 69 |.Q.disti|nctly di|
|00001210| 66 66 65 72 65 6e 74 20 | 41 50 49 20 69 6e 20 61 |fferent |API in a|
|00001220| 20 6d 69 73 61 6c 69 67 | 6e 65 64 20 4f 53 2e 20 | misalig|ned OS. |
|00001230| 53 69 6e 63 65 20 74 68 | 65 72 65 20 61 72 65 20 |Since th|ere are |
|00001240| 6d 61 6e 79 20 41 50 49 | 73 20 74 6f 20 6c 65 61 |many API|s to lea|
|00001250| 72 6e 2c 00 00 00 03 56 | 00 09 00 55 c2 70 72 6f |rn,....V|...U.pro|
|00001260| 67 72 61 6d 6d 65 72 73 | 20 77 69 6c 6c 20 6e 6f |grammers| will no|
|00001270| 74 20 69 6d 70 6c 65 6d | 65 6e 74 20 61 6c 6c 20 |t implem|ent all |
|00001280| 6f 66 20 74 68 65 20 6f | 70 65 72 61 74 69 6f 6e |of the o|peration|
|00001290| 73 2e 20 57 69 74 68 6f | 75 74 20 63 6f 6e 74 69 |s. Witho|ut conti|
|000012a0| 6e 75 6f 75 73 20 73 75 | 70 70 6f 72 74 20 66 6f |nuous su|pport fo|
|000012b0| 72 00 00 00 03 62 00 09 | 00 4d c2 6d 61 6e 79 20 |r....b..|.M.many |
|000012c0| 63 6f 6d 6d 6f 6e 20 6f | 70 65 72 61 74 69 6f 6e |common o|peration|
|000012d0| 73 2c 20 74 68 65 20 72 | 6f 61 64 20 61 20 75 73 |s, the r|oad a us|
|000012e0| 65 72 20 6d 75 73 74 20 | 74 72 61 76 65 6c 20 74 |er must |travel t|
|000012f0| 6f 20 67 65 74 20 74 6f | 20 74 68 65 20 65 6e 64 |o get to| the end|
|00001300| 20 6f 66 20 61 6e 79 00 | 00 00 03 6e 00 09 00 29 | of any.|...n...)|
|00001310| c2 70 61 72 74 69 63 75 | 6c 61 72 20 74 61 73 6b |.particu|lar task|
|00001320| 20 62 65 63 6f 6d 65 73 | 20 72 75 74 74 65 64 20 | becomes| rutted |
|00001330| 61 6e 64 20 62 65 6e 74 | 2e 00 00 00 03 7f 00 24 |and bent|.......$|
|00001340| 00 4f c2 54 68 65 20 6f | 74 68 65 72 20 6d 61 6a |.O.The o|ther maj|
|00001350| 6f 72 20 6d 69 73 61 6c | 69 67 6e 65 64 20 76 65 |or misal|igned ve|
|00001360| 72 74 65 62 72 61 65 20 | 68 61 76 65 20 74 6f 20 |rtebrae |have to |
|00001370| 64 6f 20 77 69 74 68 20 | 64 61 74 61 20 70 72 6f |do with |data pro|
|00001380| 63 65 73 73 69 6e 67 2e | 20 46 72 6f 6d 20 74 68 |cessing.| From th|
|00001390| 65 00 00 00 03 8b 00 09 | 00 4f c2 72 65 73 6f 75 |e.......|.O.resou|
|000013a0| 72 63 65 20 63 6f 6e 73 | 74 72 61 69 6e 65 64 20 |rce cons|trained |
|000013b0| 63 72 75 63 69 62 6c 65 | 73 20 6f 66 20 73 6f 66 |crucible|s of sof|
|000013c0| 74 77 61 72 65 20 64 65 | 76 65 6c 6f 70 6d 65 6e |tware de|velopmen|
|000013d0| 74 20 6f 66 20 31 35 20 | 79 65 61 72 73 20 61 67 |t of 15 |years ag|
|000013e0| 6f 20 65 6d 65 72 67 65 | 64 00 00 00 03 97 00 09 |o emerge|d.......|
|000013f0| 00 57 c2 63 6f 64 69 6e | 67 20 73 74 79 6c 65 73 |.W.codin|g styles|
|00001400| 20 61 6e 64 20 74 65 63 | 68 6e 69 71 75 65 73 20 | and tec|hniques |
|00001410| 74 68 61 74 20 73 68 6f | 75 6c 64 20 73 65 65 6d |that sho|uld seem|
|00001420| 20 6c 69 6b 65 20 71 75 | 61 69 6e 74 20 61 6e 61 | like qu|aint ana|
|00001430| 63 68 72 6f 6e 69 73 6d | 73 20 69 6e 20 74 68 65 |chronism|s in the|
|00001440| 20 62 6c 69 6e 64 69 6e | 67 00 00 00 03 a3 00 09 | blindin|g.......|
|00001450| 00 51 c2 6c 69 67 68 74 | 20 6f 66 20 74 6f 64 61 |.Q.light| of toda|
|00001460| 79 ff d5 73 20 72 65 73 | 6f 75 72 63 65 20 68 65 |y..s res|ource he|
|00001470| 61 76 79 20 64 65 76 69 | 63 65 73 2e 20 41 6e 6f |avy devi|ces. Ano|
|00001480| 74 68 65 72 20 58 65 72 | 6f 78 20 69 6e 76 65 6e |ther Xer|ox inven|
|00001490| 74 69 6f 6e 2c 20 74 68 | 65 20 53 6d 61 6c 6c 54 |tion, th|e SmallT|
|000014a0| 61 6c 6b 00 00 00 03 af | 00 09 00 58 c2 6c 61 6e |alk.....|...X.lan|
|000014b0| 67 75 61 67 65 2c 20 70 | 72 6f 76 69 64 65 64 20 |guage, p|rovided |
|000014c0| 77 68 61 74 20 69 73 20 | 6e 6f 74 20 72 65 61 6c |what is |not real|
|000014d0| 6c 79 20 61 20 70 61 72 | 61 64 69 67 6d 20 73 68 |ly a par|adigm sh|
|000014e0| 69 66 74 20 61 73 20 6d | 75 63 68 20 61 73 20 69 |ift as m|uch as i|
|000014f0| 74 20 69 73 20 61 20 73 | 61 6e 69 74 79 20 63 68 |t is a s|anity ch|
|00001500| 65 63 6b 2e 00 00 03 c0 | 00 24 00 4d c2 43 6f 6d |eck.....|.$.M.Com|
|00001510| 70 75 74 65 72 73 20 61 | 72 65 20 6e 6f 74 20 79 |puters a|re not y|
|00001520| 65 74 20 61 72 74 69 66 | 69 63 69 61 6c 20 6c 69 |et artif|icial li|
|00001530| 66 65 20 66 6f 72 6d 73 | 20 74 68 61 74 20 77 65 |fe forms| that we|
|00001540| 20 65 78 70 65 63 74 20 | 74 6f 20 77 6f 72 6b 20 | expect |to work |
|00001550| 61 6e 64 20 6c 65 61 72 | 6e 00 00 00 03 cc 00 09 |and lear|n.......|
|00001560| 00 53 c2 69 6e 64 65 70 | 65 6e 64 65 6e 74 6c 79 |.S.indep|endently|
|00001570| 20 66 6f 72 20 74 68 65 | 20 62 65 74 74 65 72 6d | for the| betterm|
|00001580| 65 6e 74 20 6f 66 20 74 | 68 65 20 75 6e 69 76 65 |ent of t|he unive|
|00001590| 72 73 65 2e 20 54 68 65 | 79 20 61 72 65 20 67 65 |rse. The|y are ge|
|000015a0| 6e 65 72 61 6c 6c 79 20 | 63 6c 75 6e 6b 79 2c 20 |nerally |clunky, |
|000015b0| 6e 6f 69 73 79 00 00 00 | 03 d8 00 09 00 53 c2 62 |noisy...|.....S.b|
|000015c0| 6f 78 65 73 20 74 68 61 | 74 20 77 65 20 73 68 6f |oxes tha|t we sho|
|000015d0| 76 65 20 65 6e 64 6c 65 | 73 73 20 61 6d 6f 75 6e |ve endle|ss amoun|
|000015e0| 74 73 20 6f 66 20 64 61 | 74 61 20 69 6e 74 6f 20 |ts of da|ta into |
|000015f0| 61 6e 64 20 68 61 76 65 | 20 74 68 65 6d 20 74 72 |and have| them tr|
|00001600| 61 6e 73 66 6f 72 6d 20 | 69 74 20 69 6e 74 6f 20 |ansform |it into |
|00001610| 61 00 00 00 03 e4 00 09 | 00 56 c2 64 69 66 66 65 |a.......|.V.diffe|
|00001620| 72 65 6e 74 20 66 6f 72 | 6d 2c 20 74 68 65 6e 20 |rent for|m, then |
|00001630| 73 70 69 74 20 69 74 20 | 62 61 63 6b 20 6f 75 74 |spit it |back out|
|00001640| 2e 20 43 6f 6d 70 75 74 | 65 72 ff d5 73 20 70 72 |. Comput|er..s pr|
|00001650| 6f 63 65 73 73 20 64 61 | 74 61 20 2d 20 6e 6f 20 |ocess da|ta - no |
|00001660| 6d 61 74 74 65 72 20 77 | 68 61 74 20 66 6f 72 6d |matter w|hat form|
|00001670| 00 00 03 f0 00 09 00 55 | c2 74 68 61 74 20 64 61 |.......U|.that da|
|00001680| 74 61 20 74 61 6b 65 73 | 2c 20 74 68 65 72 65 20 |ta takes|, there |
|00001690| 61 72 65 20 6d 65 74 68 | 6f 64 6f 6c 6f 67 69 65 |are meth|odologie|
|000016a0| 73 20 74 68 61 74 20 63 | 61 6e 20 62 65 20 61 64 |s that c|an be ad|
|000016b0| 68 65 72 65 64 20 74 6f | 20 69 6e 20 6f 72 64 65 |hered to| in orde|
|000016c0| 72 20 74 6f 20 6d 61 69 | 6e 74 61 69 6e 00 00 00 |r to mai|ntain...|
|000016d0| 03 fc 00 09 00 53 c2 63 | 6f 6e 73 69 73 74 65 6e |.....S.c|onsisten|
|000016e0| 63 79 20 61 6e 64 20 67 | 65 6e 65 72 61 74 65 20 |cy and g|enerate |
|000016f0| 65 78 70 65 63 74 65 64 | 20 72 65 73 75 6c 74 73 |expected| results|
|00001700| 2e 20 57 65 20 65 78 70 | 65 63 74 20 67 6f 6f 64 |. We exp|ect good|
|00001710| 20 73 6f 66 74 77 61 72 | 65 20 74 6f 20 70 65 72 | softwar|e to per|
|00001720| 66 6f 72 6d 20 74 68 69 | 73 00 00 00 04 08 00 09 |form thi|s.......|
|00001730| 00 57 c2 77 61 79 2e 20 | 49 74 20 77 69 6c 6c 20 |.W.way. |It will |
|00001740| 64 6f 20 79 6f 75 20 6e | 6f 20 67 6f 6f 64 20 69 |do you n|o good i|
|00001750| 66 20 74 68 65 20 63 6f | 6d 70 75 74 65 72 20 69 |f the co|mputer i|
|00001760| 6e 20 79 6f 75 72 20 63 | 61 72 20 64 65 63 69 64 |n your c|ar decid|
|00001770| 65 73 20 74 6f 20 74 75 | 72 6e 20 6f 6e 20 79 6f |es to tu|rn on yo|
|00001780| 75 72 20 6c 69 67 68 74 | 73 00 00 00 04 14 00 09 |ur light|s.......|
|00001790| 00 2e c2 69 6e 73 74 65 | 61 64 20 6f 66 20 64 65 |...inste|ad of de|
|000017a0| 70 6c 6f 79 20 79 6f 75 | 72 20 61 69 72 62 61 67 |ploy you|r airbag|
|000017b0| 20 69 6e 20 61 6e 20 61 | 63 63 69 64 65 6e 74 2e | in an a|ccident.|
|000017c0| 00 00 04 25 00 24 00 48 | c2 54 68 65 20 53 6d 61 |...%.$.H|.The Sma|
|000017d0| 6c 6c 54 61 6c 6b 20 65 | 6e 76 69 72 6f 6e 6d 65 |llTalk e|nvironme|
|000017e0| 6e 74 20 69 6e 74 72 6f | 64 75 63 65 64 20 61 20 |nt intro|duced a |
|000017f0| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 6d 65 74 68 |programm|ing meth|
|00001800| 6f 64 6f 6c 6f 67 79 20 | 6b 6e 6f 77 6e 20 61 73 |odology |known as|
|00001810| 00 00 04 31 00 09 00 5a | c2 4d 6f 64 65 6c 2c 20 |...1...Z|.Model, |
|00001820| 56 69 65 77 2c 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |View, Co|ntroller|
|00001830| 2e 20 49 6e 20 74 68 69 | 73 20 6d 65 74 68 6f 64 |. In thi|s method|
|00001840| 6f 6c 6f 67 79 2c 20 74 | 68 65 20 c5 6d 6f 64 65 |ology, t|he .mode|
|00001850| 6c c2 20 69 73 20 74 68 | 65 20 64 61 74 61 20 6f |l. is th|e data o|
|00001860| 66 20 74 68 65 20 73 79 | 73 74 65 6d 2e 20 54 68 |f the sy|stem. Th|
|00001870| 69 73 00 00 04 3d 00 09 | 00 56 c2 69 73 20 74 72 |is...=..|.V.is tr|
|00001880| 75 65 20 66 6f 72 20 61 | 20 77 6f 72 64 20 70 72 |ue for a| word pr|
|00001890| 6f 63 65 73 73 69 6e 67 | 20 73 79 73 74 65 6d 2c |ocessing| system,|
|000018a0| 20 61 20 67 61 6d 65 2c | 20 6f 72 20 61 6e 20 61 | a game,| or an a|
|000018b0| 63 63 6f 75 6e 74 69 6e | 67 20 70 61 63 6b 61 67 |ccountin|g packag|
|000018c0| 65 2e 20 54 68 65 20 c5 | 76 69 65 77 20 c2 69 73 |e. The .|view .is|
|000018d0| 00 00 04 49 00 09 00 57 | c2 73 69 6d 70 6c 79 20 |...I...W|.simply |
|000018e0| 74 68 65 20 69 6e 74 65 | 72 66 61 63 65 20 74 68 |the inte|rface th|
|000018f0| 72 6f 75 67 68 20 77 68 | 69 63 68 20 61 20 75 73 |rough wh|ich a us|
|00001900| 65 72 20 69 6e 74 65 72 | 61 63 74 73 20 77 69 74 |er inter|acts wit|
|00001910| 68 20 74 68 65 20 73 79 | 73 74 65 6d 2e 20 54 68 |h the sy|stem. Th|
|00001920| 69 73 20 69 6e 63 6c 75 | 64 65 73 20 61 6c 6c 00 |is inclu|des all.|
|00001930| 00 00 04 55 00 09 00 54 | c2 65 78 74 65 72 6e 61 |...U...T|.externa|
|00001940| 6c 20 69 6e 66 6c 75 65 | 6e 63 65 73 20 73 75 63 |l influe|nces suc|
|00001950| 68 20 61 73 20 64 69 73 | 70 6c 61 79 73 2c 20 6d |h as dis|plays, m|
|00001960| 69 63 65 2c 20 6b 65 79 | 62 6f 61 72 64 73 2c 20 |ice, key|boards, |
|00001970| 70 72 69 6e 74 65 72 73 | 2c 20 73 70 65 61 6b 65 |printers|, speake|
|00001980| 72 73 2c 20 65 74 63 2e | 20 54 68 65 00 00 04 61 |rs, etc.| The...a|
|00001990| 00 09 00 55 c5 63 6f 6e | 74 72 6f 6c 6c 65 72 20 |...U.con|troller |
|000019a0| c2 69 73 20 74 68 65 20 | 6d 65 63 68 61 6e 69 73 |.is the |mechanis|
|000019b0| 6d 20 62 79 20 77 68 69 | 63 68 20 74 68 65 20 76 |m by whi|ch the v|
|000019c0| 69 65 77 20 28 69 6e 74 | 65 72 66 61 63 65 29 20 |iew (int|erface) |
|000019d0| 63 61 6e 20 61 66 66 65 | 63 74 20 63 68 61 6e 67 |can affe|ct chang|
|000019e0| 65 73 20 6f 6e 20 74 68 | 65 00 00 00 04 6d 00 09 |es on th|e....m..|
|000019f0| 00 52 c2 64 61 74 61 2e | 20 46 6f 72 20 65 78 65 |.R.data.| For exe|
|00001a00| 61 6d 70 6c 65 2c 20 77 | 65 20 70 72 65 73 73 20 |ample, w|e press |
|00001a10| 74 68 65 20 64 65 6c 65 | 74 65 20 6b 65 79 20 74 |the dele|te key t|
|00001a20| 6f 20 64 65 6c 65 74 65 | 20 74 68 65 20 73 65 6c |o delete| the sel|
|00001a30| 65 63 74 65 64 20 74 65 | 78 74 20 69 6e 20 61 20 |ected te|xt in a |
|00001a40| 77 6f 72 64 00 00 04 79 | 00 09 00 56 c2 70 72 6f |word...y|...V.pro|
|00001a50| 63 65 73 73 6f 72 2e 20 | 49 74 20 69 73 20 65 78 |cessor. |It is ex|
|00001a60| 74 72 65 6d 65 6c 79 20 | 62 65 6e 65 66 69 63 69 |tremely |benefici|
|00001a70| 61 6c 20 74 6f 20 74 68 | 65 20 64 65 76 65 6c 6f |al to th|e develo|
|00001a80| 70 65 72 20 69 66 20 74 | 68 65 20 70 72 6f 67 72 |per if t|he progr|
|00001a90| 61 6d 6d 69 6e 67 20 65 | 6e 76 69 72 6f 6e 6d 65 |amming e|nvironme|
|00001aa0| 6e 74 00 00 04 85 00 09 | 00 52 c2 70 72 6f 76 69 |nt......|.R.provi|
|00001ab0| 64 65 73 20 61 20 6d 65 | 63 68 61 6e 69 73 6d 20 |des a me|chanism |
|00001ac0| 61 64 68 65 72 69 6e 67 | 20 74 6f 20 74 68 69 73 |adhering| to this|
|00001ad0| 20 6d 6f 64 65 6c 2e 20 | 41 20 6d 69 73 61 6c 69 | model. |A misali|
|00001ae0| 67 6e 65 64 20 73 79 73 | 74 65 6d 20 70 72 6f 76 |gned sys|tem prov|
|00001af0| 69 64 65 73 20 6e 6f 20 | 73 75 63 68 00 00 04 91 |ides no |such....|
|00001b00| 00 09 00 56 c2 6d 65 63 | 68 61 6e 69 73 6d 2c 20 |...V.mec|hanism, |
|00001b10| 61 6e 64 20 74 68 75 73 | 20 6c 65 61 76 65 73 20 |and thus| leaves |
|00001b20| 69 74 20 74 6f 20 61 6c | 6c 20 64 65 76 65 6c 6f |it to al|l develo|
|00001b30| 70 65 72 73 20 74 6f 20 | 72 65 2d 69 6e 76 65 6e |pers to |re-inven|
|00001b40| 74 20 74 68 65 20 73 61 | 6d 65 20 6d 65 63 68 61 |t the sa|me mecha|
|00001b50| 6e 69 73 6d 2e 20 53 75 | 63 68 00 00 04 9d 00 09 |nism. Su|ch......|
|00001b60| 00 52 c2 61 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |.R.a pro|gramming|
|00001b70| 20 63 6f 6d 6d 75 6e 69 | 74 79 20 69 73 20 6e 6f | communi|ty is no|
|00001b80| 74 20 77 6f 72 6b 69 6e | 67 20 65 66 66 69 63 69 |t workin|g effici|
|00001b90| 65 6e 74 6c 79 2c 20 61 | 6e 64 20 63 6f 75 6c 64 |ently, a|nd could|
|00001ba0| 20 62 65 20 6d 6f 72 65 | 20 69 6e 6e 6f 76 61 74 | be more| innovat|
|00001bb0| 69 76 65 2e 00 00 04 b3 | 00 6d 00 24 c3 45 6e 6f |ive.....|.m.$.Eno|
|00001bc0| 75 67 68 20 4d 69 73 61 | 6c 69 67 6e 6d 65 6e 74 |ugh Misa|lignment|
|00001bd0| 2c 20 57 68 61 74 20 41 | 62 6f 75 74 20 42 65 3f |, What A|bout Be?|
|00001be0| 00 00 04 c9 00 24 00 49 | c2 4f 6e 65 20 6f 66 20 |.....$.I|.One of |
|00001bf0| 74 68 65 20 70 72 69 6d | 61 72 79 20 74 61 72 67 |the prim|ary targ|
|00001c00| 65 74 20 6d 61 72 6b 65 | 74 73 20 66 6f 72 20 74 |et marke|ts for t|
|00001c10| 68 65 20 42 65 4f 53 20 | 69 73 20 6d 75 6c 74 69 |he BeOS |is multi|
|00001c20| 6d 65 64 69 61 20 61 75 | 74 68 6f 72 73 20 61 6e |media au|thors an|
|00001c30| 64 00 00 00 04 d5 00 09 | 00 51 c2 65 64 69 74 6f |d.......|.Q.edito|
|00001c40| 72 73 2e 20 54 68 69 73 | 20 63 72 6f 77 64 20 67 |rs. This| crowd g|
|00001c50| 65 6e 65 72 61 6c 6c 79 | 20 75 73 65 73 20 70 72 |enerally| uses pr|
|00001c60| 6f 64 75 63 74 73 20 73 | 75 63 68 20 61 73 20 50 |oducts s|uch as P|
|00001c70| 68 6f 74 6f 53 68 6f 70 | 2c 20 50 72 65 6d 69 65 |hotoShop|, Premie|
|00001c80| 72 65 2c 20 46 72 61 63 | 74 61 6c 00 00 00 04 e1 |re, Frac|tal.....|
|00001c90| 00 09 00 54 c2 44 65 73 | 69 67 6e 20 50 61 69 6e |...T.Des|ign Pain|
|00001ca0| 74 65 72 20 61 6e 64 20 | 74 68 65 20 6c 69 6b 65 |ter and |the like|
|00001cb0| 2e 20 4f 6e 65 20 6f 66 | 20 74 68 65 20 62 69 67 |. One of| the big|
|00001cc0| 67 65 73 74 20 70 72 6f | 62 6c 65 6d 73 20 65 6e |gest pro|blems en|
|00001cd0| 63 6f 75 6e 74 65 72 65 | 64 20 62 79 20 74 68 69 |countere|d by thi|
|00001ce0| 73 20 73 65 74 20 6f 66 | 00 00 04 ed 00 09 00 52 |s set of|.......R|
|00001cf0| c2 75 73 65 72 73 20 69 | 73 20 69 6e 74 65 72 2d |.users i|s inter-|
|00001d00| 6f 70 65 72 61 62 69 6c | 69 74 79 20 62 65 74 77 |operabil|ity betw|
|00001d10| 65 65 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |een appl|ications|
|00001d20| 2e 20 53 68 61 72 69 6e | 67 20 66 69 6c 65 73 20 |. Sharin|g files |
|00001d30| 61 6e 64 20 65 66 66 65 | 63 74 73 20 61 63 72 6f |and effe|cts acro|
|00001d40| 73 73 00 00 04 f9 00 09 | 00 54 c2 61 70 70 6c 69 |ss......|.T.appli|
|00001d50| 63 61 74 69 6f 6e 73 20 | 69 73 20 73 6f 6d 65 74 |cations |is somet|
|00001d60| 69 6d 65 73 20 74 69 6d | 65 20 63 6f 6e 73 75 6d |imes tim|e consum|
|00001d70| 69 6e 67 20 61 6e 64 20 | 66 72 75 73 74 72 61 74 |ing and |frustrat|
|00001d80| 69 6e 67 2e 20 54 6f 20 | 73 6f 6c 76 65 20 74 68 |ing. To |solve th|
|00001d90| 69 73 20 70 72 6f 62 6c | 65 6d 2c 20 77 65 00 00 |is probl|em, we..|
|00001da0| 05 05 00 09 00 55 c2 70 | 72 65 73 65 6e 74 20 52 |.....U.p|resent R|
|00001db0| 72 61 73 74 65 72 2c 20 | 61 6e 20 69 6d 61 67 65 |raster, |an image|
|00001dc0| 20 76 69 65 77 65 72 20 | 77 69 74 68 20 61 20 77 | viewer |with a w|
|00001dd0| 69 6e 64 6f 77 2e 20 59 | 6f 75 20 63 61 6e 20 64 |indow. Y|ou can d|
|00001de0| 72 61 67 20 61 6e 64 20 | 64 72 6f 70 20 66 69 6c |rag and |drop fil|
|00001df0| 65 73 20 6f 6e 74 6f 20 | 74 68 65 00 00 00 05 11 |es onto |the.....|
|00001e00| 00 09 00 59 c2 69 63 6f | 6e 20 61 6e 64 20 74 68 |...Y.ico|n and th|
|00001e10| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 77 69 |e applic|ation wi|
|00001e20| 6c 6c 20 6f 70 65 6e 20 | 75 70 20 61 6e 64 20 64 |ll open |up and d|
|00001e30| 69 73 70 6c 61 79 20 74 | 68 65 20 69 6d 61 67 65 |isplay t|he image|
|00001e40| 2e 20 59 6f 75 20 63 61 | 6e 20 61 6c 73 6f 20 63 |. You ca|n also c|
|00001e50| 6f 70 79 20 61 6e 64 20 | 70 61 73 74 65 00 00 00 |opy and |paste...|
|00001e60| 05 1d 00 09 00 3b c2 61 | 20 73 65 6c 65 63 74 69 |.....;.a| selecti|
|00001e70| 6f 6e 20 62 65 74 77 65 | 65 6e 20 61 70 70 6c 69 |on betwe|en appli|
|00001e80| 63 61 74 69 6f 6e 73 2c | 20 6f 72 20 6f 6e 74 6f |cations,| or onto|
|00001e90| 20 74 68 65 20 73 61 6d | 65 20 63 61 6e 76 61 73 | the sam|e canvas|
|00001ea0| 2e 00 00 00 05 2e 00 24 | 00 51 c2 49 6e 20 6f 75 |.......$|.Q.In ou|
|00001eb0| 72 20 73 61 6d 70 6c 65 | 20 63 6f 64 65 20 77 65 |r sample| code we|
|00001ec0| 20 77 69 6c 6c 20 64 65 | 6d 6f 6e 73 74 72 61 74 | will de|monstrat|
|00001ed0| 65 20 68 6f 77 20 74 6f | 20 65 78 74 65 6e 64 20 |e how to| extend |
|00001ee0| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |an appli|cation t|
|00001ef0| 6f 20 73 75 70 70 6f 72 | 74 20 61 00 00 00 05 3a |o suppor|t a....:|
|00001f00| 00 09 00 4f c2 77 69 64 | 65 20 76 61 72 69 65 74 |...O.wid|e variet|
|00001f10| 79 20 6f 66 20 67 72 61 | 70 68 69 63 73 20 66 69 |y of gra|phics fi|
|00001f20| 6c 65 20 66 6f 72 6d 61 | 74 73 2c 20 77 69 74 68 |le forma|ts, with|
|00001f30| 6f 75 74 20 68 61 76 69 | 6e 67 20 74 6f 20 77 61 |out havi|ng to wa|
|00001f40| 69 74 20 66 6f 72 20 74 | 68 65 20 6f 72 69 67 69 |it for t|he origi|
|00001f50| 6e 61 6c 00 00 00 05 46 | 00 09 00 57 c2 6d 61 6e |nal....F|...W.man|
|00001f60| 75 66 61 63 74 75 72 65 | 72 20 74 6f 20 64 6f 20 |ufacture|r to do |
|00001f70| 73 6f 2e 20 54 68 69 73 | 20 63 61 70 61 62 69 6c |so. This| capabil|
|00001f80| 69 74 79 20 69 73 20 73 | 69 6d 69 6c 61 72 20 74 |ity is s|imilar t|
|00001f90| 6f 20 50 68 6f 74 6f 53 | 68 6f 70 20 70 6c 75 67 |o PhotoS|hop plug|
|00001fa0| 2d 69 6e 73 2c 20 61 73 | 20 77 65 6c 6c 20 61 73 |-ins, as| well as|
|00001fb0| 20 69 6e 00 00 00 05 52 | 00 09 00 55 c2 6f 74 68 | in....R|...U.oth|
|00001fc0| 65 72 20 70 72 6f 64 75 | 63 74 73 2e 20 57 65 20 |er produ|cts. We |
|00001fd0| 73 74 61 72 74 20 77 69 | 74 68 20 61 20 67 65 6e |start wi|th a gen|
|00001fe0| 65 72 61 6c 20 73 70 65 | 63 69 66 69 63 61 74 69 |eral spe|cificati|
|00001ff0| 6f 6e 20 6f 66 20 77 68 | 61 74 20 74 68 65 20 70 |on of wh|at the p|
|00002000| 72 6f 67 72 61 6d 20 73 | 68 6f 75 6c 64 20 64 6f |rogram s|hould do|
|00002010| 3a 00 00 00 05 63 00 12 | 00 4d c2 ff a5 8c 47 69 |:....c..|.M....Gi|
|00002020| 76 65 20 74 68 65 20 75 | 73 65 72 20 61 20 77 61 |ve the u|ser a wa|
|00002030| 79 20 6f 66 20 64 72 61 | 67 67 69 6e 67 20 61 6e |y of dra|gging an|
|00002040| 64 20 64 72 6f 70 70 69 | 6e 67 20 67 72 61 70 68 |d droppi|ng graph|
|00002050| 69 63 20 69 6d 61 67 65 | 73 20 66 72 6f 6d 20 74 |ic image|s from t|
|00002060| 68 65 20 66 69 6c 65 00 | 00 00 05 6f 00 24 00 34 |he file.|...o.$.4|
|00002070| c2 62 72 6f 77 73 65 72 | 20 6f 6e 74 6f 20 74 68 |.browser| onto th|
|00002080| 65 20 69 6e 74 65 72 66 | 61 63 65 20 61 6e 64 20 |e interf|ace and |
|00002090| 68 61 76 65 20 74 68 65 | 6d 20 64 69 73 70 6c 61 |have the|m displa|
|000020a0| 79 65 64 2e 00 00 05 80 | 00 12 00 4d c2 ff a5 8c |yed.....|...M....|
|000020b0| 50 72 6f 76 69 64 65 20 | 61 20 6d 65 63 68 61 6e |Provide |a mechan|
|000020c0| 69 73 6d 20 74 6f 20 73 | 75 70 70 6f 72 74 20 64 |ism to s|upport d|
|000020d0| 72 61 67 20 61 6e 64 20 | 64 72 6f 70 20 70 61 73 |rag and |drop pas|
|000020e0| 74 69 6e 67 20 66 72 6f | 6d 20 61 6e 6f 74 68 65 |ting fro|m anothe|
|000020f0| 72 20 73 6f 75 72 63 65 | 2e 00 00 00 05 91 00 12 |r source|........|
|00002100| 00 51 c2 ff a5 8c 50 72 | 6f 76 69 64 65 20 74 68 |.Q....Pr|ovide th|
|00002110| 65 20 61 62 69 6c 69 74 | 79 20 74 6f 20 61 63 63 |e abilit|y to acc|
|00002120| 65 70 74 20 61 6e 79 20 | 66 69 6c 65 20 66 6f 72 |ept any |file for|
|00002130| 6d 61 74 20 66 6f 72 20 | 77 68 69 63 68 20 61 20 |mat for |which a |
|00002140| 63 6f 64 65 63 20 69 73 | 20 61 76 61 69 6c 61 62 |codec is| availab|
|00002150| 6c 65 2e 00 00 00 05 a2 | 00 24 00 50 c2 54 68 65 |le......|.$.P.The|
|00002160| 20 6c 61 73 74 20 70 6f | 69 6e 74 20 69 73 20 74 | last po|int is t|
|00002170| 68 65 20 6d 6f 73 74 20 | 69 6d 70 6f 72 74 61 6e |he most |importan|
|00002180| 74 2c 20 61 6e 64 20 74 | 68 65 20 72 65 73 74 20 |t, and t|he rest |
|00002190| 69 73 20 74 68 65 20 73 | 75 70 70 6f 72 74 69 6e |is the s|upportin|
|000021a0| 67 20 66 72 61 6d 65 77 | 6f 72 6b 2e 00 00 05 ae |g framew|ork.....|
|000021b0| 00 09 00 52 c2 41 6e 20 | 69 6d 61 67 65 20 63 6f |...R.An |image co|
|000021c0| 64 65 63 20 74 72 61 6e | 73 6c 61 74 65 73 20 61 |dec tran|slates a|
|000021d0| 6e 20 69 6d 61 67 65 20 | 66 72 6f 6d 20 6f 6e 65 |n image |from one|
|000021e0| 20 66 6f 72 6d 61 74 20 | 74 6f 20 61 6e 6f 74 68 | format |to anoth|
|000021f0| 65 72 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |er. For |example,|
|00002200| 20 61 20 47 49 46 00 00 | 05 ba 00 09 00 55 c2 63 | a GIF..|.....U.c|
|00002210| 6f 64 65 63 20 77 6f 75 | 6c 64 20 6b 6e 6f 77 20 |odec wou|ld know |
|00002220| 68 6f 77 20 74 6f 20 64 | 65 63 6f 64 65 20 61 6e |how to d|ecode an|
|00002230| 64 20 65 6e 63 6f 64 65 | 20 61 6e 20 69 6d 61 67 |d encode| an imag|
|00002240| 65 20 6f 66 20 74 68 65 | 20 47 49 46 20 66 6f 72 |e of the| GIF for|
|00002250| 6d 61 74 2e 20 46 69 72 | 73 74 2c 20 77 65 20 6d |mat. Fir|st, we m|
|00002260| 75 73 74 00 00 00 05 c6 | 00 09 00 57 c2 68 61 76 |ust.....|...W.hav|
|00002270| 65 20 61 20 6e 61 74 69 | 76 65 20 66 6f 72 6d 61 |e a nati|ve forma|
|00002280| 74 20 74 68 61 74 20 61 | 6c 6c 20 63 6f 64 65 63 |t that a|ll codec|
|00002290| 73 20 63 61 6e 20 75 6e | 64 65 72 73 74 61 6e 64 |s can un|derstand|
|000022a0| 2e 20 54 68 69 73 20 66 | 6f 72 6d 61 74 20 69 73 |. This f|ormat is|
|000022b0| 20 72 65 70 72 65 73 65 | 6e 74 65 64 20 62 79 20 | represe|nted by |
|000022c0| 74 68 65 00 00 00 05 d2 | 00 09 00 1e c2 66 6f 6c |the.....|.....fol|
|000022d0| 6c 6f 77 69 6e 67 20 47 | 66 78 49 6d 61 67 65 20 |lowing G|fxImage |
|000022e0| 73 74 72 75 63 74 75 72 | 65 3a 00 00 05 e8 00 12 |structur|e:......|
|000022f0| 00 1a c6 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |...typed|ef struc|
|00002300| 74 20 47 66 78 49 6d 61 | 67 65 20 7b 00 00 05 f2 |t GfxIma|ge {....|
|00002310| 00 1b 00 0e c7 2f 2f 20 | 69 6d 61 67 65 20 64 61 |.....// |image da|
|00002320| 74 61 00 00 05 fd 00 1b | 00 0c c6 76 6f 69 64 20 |ta......|...void |
|00002330| 2a 64 61 74 61 3b 00 00 | 06 07 00 1b 00 14 c7 2f |*data;..|......./|
|00002340| 2f 20 69 6d 61 67 65 20 | 64 69 6d 65 6e 73 69 6f |/ image |dimensio|
|00002350| 6e 73 00 00 06 12 00 1b | 00 0c c6 6c 6f 6e 67 20 |ns......|...long |
|00002360| 77 69 64 74 68 3b 00 00 | 06 1d 00 1b 00 0d c6 6c |width;..|.......l|
|00002370| 6f 6e 67 20 68 65 69 67 | 68 74 3b 00 00 00 06 28 |ong heig|ht;....(|
|00002380| 00 1b 00 14 c6 6c 6f 6e | 67 20 62 79 74 65 73 5f |.....lon|g bytes_|
|00002390| 70 65 72 5f 72 6f 77 3b | 00 00 06 32 00 1b 00 13 |per_row;|...2....|
|000023a0| c7 2f 2f 20 38 2d 62 69 | 74 20 6f 72 20 33 32 2d |.// 8-bi|t or 32-|
|000023b0| 62 69 74 00 00 00 06 3d | 00 1b 00 12 c6 63 6f 6c |bit....=|.....col|
|000023c0| 6f 72 5f 73 70 61 63 65 | 20 74 79 70 65 3b 00 00 |or_space| type;..|
|000023d0| 06 48 00 1b 00 11 c6 69 | 6e 74 20 66 69 6c 65 5f |.H.....i|nt file_|
|000023e0| 66 6f 72 6d 61 74 3b 00 | 00 00 06 53 00 1b 00 12 |format;.|...S....|
|000023f0| c6 69 6e 74 20 63 6f 6c | 6f 72 5f 66 6f 72 6d 61 |.int col|or_forma|
|00002400| 74 3b 00 00 06 5e 00 1b | 00 10 c6 69 6e 74 20 6e |t;...^..|...int n|
|00002410| 75 6d 5f 63 6f 6c 6f 72 | 73 3b 00 00 06 68 00 1b |um_color|s;...h..|
|00002420| 00 1e c7 2f 2f 20 63 6f | 6c 6f 72 6d 61 70 2c 20 |...// co|lormap, |
|00002430| 69 66 20 74 79 70 65 20 | 3d 3d 20 38 5f 42 49 54 |if type |== 8_BIT|
|00002440| 00 00 06 73 00 1b 00 18 | c6 72 67 62 5f 63 6f 6c |...s....|.rgb_col|
|00002450| 6f 72 20 70 61 6c 65 74 | 74 65 5b 32 35 36 5d 3b |or palet|te[256];|
|00002460| 00 00 06 7d 00 1b 00 27 | c7 2f 2f 20 6c 6f 6e 67 |...}...'|.// long|
|00002470| 20 66 6f 72 6d 61 74 20 | 69 64 65 6e 74 69 66 69 | format |identifi|
|00002480| 65 72 2c 20 73 65 74 20 | 6f 6e 20 6c 6f 61 64 00 |er, set |on load.|
|00002490| 00 00 06 88 00 1b 00 15 | c6 63 68 61 72 20 66 75 |........|.char fu|
|000024a0| 6c 6c 5f 69 6e 66 6f 5b | 31 32 38 5d 3b 00 00 00 |ll_info[|128];...|
|000024b0| 06 92 00 1b 00 28 c7 2f | 2f 20 73 68 6f 72 74 20 |.....(./|/ short |
|000024c0| 66 6f 72 6d 61 74 20 69 | 64 65 6e 74 69 66 69 65 |format i|dentifie|
|000024d0| 72 2c 20 73 65 74 20 6f | 6e 20 6c 6f 61 64 00 00 |r, set o|n load..|
|000024e0| 06 9d 00 1b 00 16 c6 63 | 68 61 72 20 73 68 6f 72 |.......c|har shor|
|000024f0| 74 5f 69 6e 66 6f 5b 31 | 32 38 5d 3b 00 00 06 a7 |t_info[1|28];....|
|00002500| 00 1b 00 2e c7 2f 2f 20 | 69 6d 61 67 65 20 63 6f |.....// |image co|
|00002510| 6d 6d 65 6e 74 3b 20 73 | 61 76 65 64 20 69 66 20 |mment; s|aved if |
|00002520| 66 6f 72 6d 61 74 20 73 | 75 70 70 6f 72 74 73 20 |format s|upports |
|00002530| 69 74 00 00 06 b2 00 1b | 00 0f c6 63 68 61 72 20 |it......|...char |
|00002540| 2a 63 6f 6d 6d 65 6e 74 | 3b 00 00 00 06 bc 00 1b |*comment|;.......|
|00002550| 00 2b c7 2f 2f 20 23 20 | 6f 66 20 70 61 67 65 20 |.+.// # |of page |
|00002560| 66 69 6c 65 73 2c 20 62 | 61 73 65 6e 61 6d 65 20 |files, b|asename |
|00002570| 6f 66 20 70 61 67 65 20 | 66 69 6c 65 73 00 00 00 |of page |files...|
|00002580| 06 c7 00 1b 00 17 c6 69 | 66 20 3e 31 20 69 6e 74 |.......i|f >1 int|
|00002590| 20 6e 75 6d 70 61 67 65 | 73 3b 20 20 20 00 00 00 | numpage|s; ...|
|000025a0| 06 d2 00 1b 00 15 c6 63 | 68 61 72 20 70 61 67 65 |.......c|har page|
|000025b0| 62 6e 61 6d 65 5b 36 34 | 5d 3b 20 00 00 00 06 dd |bname[64|]; .....|
|000025c0| 00 12 00 0c c6 7d 20 47 | 66 78 49 6d 61 67 65 3b |.....} G|fxImage;|
|000025d0| 00 00 06 f9 00 24 00 50 | c2 54 68 69 73 20 69 73 |.....$.P|.This is|
|000025e0| 20 6e 6f 74 20 74 68 65 | 20 6d 6f 73 74 20 63 6f | not the| most co|
|000025f0| 6d 70 6c 65 74 65 20 72 | 65 70 72 65 73 65 6e 74 |mplete r|epresent|
|00002600| 61 74 69 6f 6e 20 74 68 | 61 74 20 61 20 72 61 73 |ation th|at a ras|
|00002610| 74 65 72 20 69 6d 61 67 | 65 20 63 6f 75 6c 64 20 |ter imag|e could |
|00002620| 70 6f 73 73 69 62 6c 79 | 00 00 07 05 00 09 00 50 |possibly|.......P|
|00002630| c2 68 61 76 65 2c 20 62 | 75 74 20 69 74 20 63 61 |.have, b|ut it ca|
|00002640| 70 74 75 72 65 73 20 74 | 68 65 20 65 73 73 65 6e |ptures t|he essen|
|00002650| 63 65 20 6f 66 20 6d 61 | 6e 79 20 66 69 6c 65 20 |ce of ma|ny file |
|00002660| 66 6f 72 6d 61 74 73 20 | 69 6e 20 61 20 63 6c 65 |formats |in a cle|
|00002670| 61 72 20 77 61 79 2e 20 | 54 68 65 20 42 65 4f 53 |ar way. |The BeOS|
|00002680| 00 00 07 11 00 09 00 58 | c2 73 75 70 70 6f 72 74 |.......X|.support|
|00002690| 73 20 61 20 6e 61 74 69 | 76 65 20 66 6f 72 6d 61 |s a nati|ve forma|
|000026a0| 74 20 66 6f 72 20 62 69 | 74 6d 61 70 20 69 6e 66 |t for bi|tmap inf|
|000026b0| 6f 72 6d 61 74 69 6f 6e | 2e 20 49 74 20 69 73 20 |ormation|. It is |
|000026c0| 74 68 65 20 42 42 69 74 | 6d 61 70 20 63 6c 61 73 |the BBit|map clas|
|000026d0| 73 2e 20 54 68 69 73 20 | 63 6c 61 73 73 20 69 73 |s. This |class is|
|000026e0| 00 00 07 1d 00 09 00 54 | c2 69 6e 74 65 6e 64 65 |.......T|.intende|
|000026f0| 64 20 74 6f 20 64 69 73 | 70 6c 61 79 20 69 6e 66 |d to dis|play inf|
|00002700| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |ormation| on the |
|00002710| 73 63 72 65 65 6e 2e 20 | 57 65 20 63 6f 75 6c 64 |screen. |We could|
|00002720| 20 75 74 69 6c 69 7a 65 | 20 74 68 69 73 20 63 6c | utilize| this cl|
|00002730| 61 73 73 20 64 69 72 65 | 63 74 6c 79 00 00 07 29 |ass dire|ctly...)|
|00002740| 00 09 00 57 c2 69 6e 73 | 74 65 61 64 20 6f 66 20 |...W.ins|tead of |
|00002750| 69 6e 74 65 72 6d 65 64 | 69 61 72 79 2c 20 62 75 |intermed|iary, bu|
|00002760| 74 20 75 73 69 6e 67 20 | 74 68 65 20 47 66 78 49 |t using |the GfxI|
|00002770| 6d 61 67 65 20 73 74 72 | 75 63 74 75 72 65 20 67 |mage str|ucture g|
|00002780| 69 76 65 73 20 75 73 20 | 67 72 65 61 74 65 72 20 |ives us |greater |
|00002790| 66 6c 65 78 69 62 69 6c | 69 74 79 00 00 00 07 35 |flexibil|ity....5|
|000027a0| 00 09 00 30 c2 69 6e 20 | 77 68 61 74 20 77 65 20 |...0.in |what we |
|000027b0| 63 61 6e 20 64 6f 20 77 | 69 74 68 20 74 68 65 20 |can do w|ith the |
|000027c0| 69 6d 61 67 65 73 20 74 | 68 61 74 20 77 65 20 6c |images t|hat we l|
|000027d0| 6f 61 64 2e 00 00 07 46 | 00 24 00 48 c2 41 6e 20 |oad....F|.$.H.An |
|000027e0| 69 64 65 61 6c 20 70 72 | 6f 67 72 61 6d 6d 69 6e |ideal pr|ogrammin|
|000027f0| 67 20 69 6e 74 65 72 66 | 61 63 65 20 66 6f 72 20 |g interf|ace for |
|00002800| 75 73 69 6e 67 20 69 6d | 61 67 65 73 20 77 6f 75 |using im|ages wou|
|00002810| 6c 64 20 62 65 20 73 6f | 6d 65 74 68 69 6e 67 20 |ld be so|mething |
|00002820| 6c 69 6b 65 00 00 07 5c | 00 12 00 2a c6 47 66 78 |like...\|...*.Gfx|
|00002830| 49 6d 61 67 65 20 2a 20 | 43 72 65 61 74 65 52 61 |Image * |CreateRa|
|00002840| 73 74 65 72 46 72 6f 6d | 46 69 6c 65 28 42 46 69 |sterFrom|File(BFi|
|00002850| 6c 65 20 2a 29 3b 00 00 | 07 67 00 12 00 2b c6 47 |le *);..|.g...+.G|
|00002860| 66 78 49 6d 61 67 65 20 | 2a 20 43 72 65 61 74 65 |fxImage |* Create|
|00002870| 52 61 73 74 65 72 49 6d | 61 67 65 28 63 68 61 72 |RasterIm|age(char|
|00002880| 20 2a 66 6e 61 6d 65 29 | 3b 00 00 00 07 72 00 12 | *fname)|;....r..|
|00002890| 00 2a c6 69 6e 74 20 57 | 72 69 74 65 52 61 73 74 |.*.int W|riteRast|
|000028a0| 65 72 49 6d 61 67 65 28 | 47 66 78 49 6d 61 67 65 |erImage(|GfxImage|
|000028b0| 20 2a 2c 20 42 46 69 6c | 65 2a 29 3b 00 00 07 7d | *, BFil|e*);...}|
|000028c0| 00 12 00 30 c6 69 6e 74 | 20 57 72 69 74 65 52 61 |...0.int| WriteRa|
|000028d0| 73 74 65 72 49 6d 61 67 | 65 28 47 66 78 49 6d 61 |sterImag|e(GfxIma|
|000028e0| 67 65 20 2a 70 2c 20 63 | 68 61 72 20 2a 66 6e 61 |ge *p, c|har *fna|
|000028f0| 6d 65 29 3b 00 00 07 8e | 00 24 00 51 c2 54 68 69 |me);....|.$.Q.Thi|
|00002900| 73 20 69 73 20 61 6e 20 | 65 61 73 79 20 69 6e 74 |s is an |easy int|
|00002910| 65 72 66 61 63 65 20 74 | 68 61 74 20 77 6f 75 6c |erface t|hat woul|
|00002920| 64 20 61 6c 6c 6f 77 20 | 61 20 70 72 6f 67 72 61 |d allow |a progra|
|00002930| 6d 6d 65 72 20 74 6f 20 | 77 72 69 74 65 20 63 6f |mmer to |write co|
|00002940| 64 65 20 74 68 61 74 20 | 69 73 20 61 73 00 00 00 |de that |is as...|
|00002950| 07 9a 00 09 00 14 c2 63 | 6c 65 61 6e 20 61 6e 64 |.......c|lean and|
|00002960| 20 73 69 6d 70 6c 65 20 | 61 73 00 00 07 b0 00 12 | simple |as......|
|00002970| 00 39 c6 47 66 78 49 6d | 61 67 65 20 2a 6e 65 77 |.9.GfxIm|age *new|
|00002980| 49 6d 61 67 65 20 3d 20 | 43 72 65 61 74 65 52 61 |Image = |CreateRa|
|00002990| 73 74 65 72 49 6d 61 67 | 65 28 ff d2 4d 61 63 54 |sterImag|e(..MacT|
|000029a0| 65 63 68 2e 67 69 66 ff | d3 29 3b 00 00 00 07 bb |ech.gif.|.);.....|
|000029b0| 00 12 00 18 c6 44 69 73 | 70 6c 61 79 49 6d 61 67 |.....Dis|playImag|
|000029c0| 65 28 6e 65 77 49 6d 61 | 67 65 29 3b 00 00 07 d7 |e(newIma|ge);....|
|000029d0| 00 24 00 50 c2 54 68 65 | 20 72 6f 61 64 20 79 6f |.$.P.The| road yo|
|000029e0| 75 20 6d 75 73 74 20 74 | 72 61 76 65 6c 20 74 6f |u must t|ravel to|
|000029f0| 20 67 65 74 20 74 6f 20 | 73 75 63 68 20 65 61 73 | get to |such eas|
|00002a00| 79 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 69 73 |y progra|mming is|
|00002a10| 20 6e 6f 74 20 74 68 61 | 74 20 64 69 66 66 69 63 | not tha|t diffic|
|00002a20| 75 6c 74 2c 00 00 07 e3 | 00 09 00 32 c2 6e 6f 72 |ult,....|...2.nor|
|00002a30| 20 6c 6f 6e 67 2e 20 57 | 65 20 6e 65 65 64 20 63 | long. W|e need c|
|00002a40| 6f 64 65 20 74 68 61 74 | 20 77 69 6c 6c 20 64 6f |ode that| will do|
|00002a50| 20 74 68 72 65 65 20 74 | 68 69 6e 67 73 3a 00 00 | three t|hings:..|
|00002a60| 07 f4 00 12 00 4c c2 ff | a5 8c 49 64 65 6e 74 69 |.....L..|..Identi|
|00002a70| 66 79 20 61 20 66 69 6c | 65 20 61 73 20 73 6f 6d |fy a fil|e as som|
|00002a80| 65 74 68 69 6e 67 20 74 | 68 61 74 20 77 65 20 63 |ething t|hat we c|
|00002a90| 61 6e 20 74 75 72 6e 20 | 69 6e 74 6f 20 61 20 47 |an turn |into a G|
|00002aa0| 66 78 49 6d 61 67 65 20 | 73 74 72 75 63 74 75 72 |fxImage |structur|
|00002ab0| 65 2e 00 00 08 05 00 12 | 00 24 c2 ff a5 8c 43 72 |e.......|.$....Cr|
|00002ac0| 65 61 74 65 20 61 20 47 | 66 78 49 6d 61 67 65 20 |eate a G|fxImage |
|00002ad0| 66 72 6f 6d 20 74 68 65 | 20 66 69 6c 65 2e 00 00 |from the| file...|
|00002ae0| 08 16 00 12 00 21 c2 ff | a5 8c 57 72 69 74 65 20 |.....!..|..Write |
|00002af0| 61 20 47 66 78 49 6d 61 | 67 65 20 74 6f 20 74 68 |a GfxIma|ge to th|
|00002b00| 65 20 66 69 6c 65 2e 00 | 00 00 08 27 00 24 00 4d |e file..|...'.$.M|
|00002b10| c2 57 65 20 75 73 65 20 | 4d 65 74 72 6f 77 65 72 |.We use |Metrower|
|00002b20| 6b 73 ff d5 20 65 78 70 | 6f 72 74 20 70 72 61 67 |ks.. exp|ort prag|
|00002b30| 6d 61 20 74 6f 20 65 6e | 73 75 72 65 20 74 68 61 |ma to en|sure tha|
|00002b40| 74 20 6f 75 72 20 73 79 | 6d 62 6f 6c 73 20 61 72 |t our sy|mbols ar|
|00002b50| 65 20 65 78 70 6f 72 74 | 65 64 20 73 6f 00 00 00 |e export|ed so...|
|00002b60| 08 33 00 09 00 3e c2 74 | 68 61 74 20 74 68 65 79 |.3...>.t|hat they|
|00002b70| 20 63 61 6e 20 62 65 20 | 66 6f 75 6e 64 20 77 68 | can be |found wh|
|00002b80| 65 6e 20 74 68 65 20 6d | 6f 64 75 6c 65 20 69 73 |en the m|odule is|
|00002b90| 20 6c 6f 61 64 65 64 20 | 61 74 20 72 75 6e 2d 74 | loaded |at run-t|
|00002ba0| 69 6d 65 2e 00 00 08 44 | 00 24 00 52 c2 54 68 65 |ime....D|.$.R.The|
|00002bb0| 73 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |se funct|ions are|
|00002bc0| 20 75 73 65 64 20 66 6f | 72 20 61 64 64 69 74 69 | used fo|r additi|
|00002bd0| 6f 6e 61 6c 20 69 64 65 | 6e 74 69 66 69 63 61 74 |onal ide|ntificat|
|00002be0| 69 6f 6e 20 61 6e 64 20 | 63 72 65 64 69 74 20 6e |ion and |credit n|
|00002bf0| 6f 74 69 63 65 73 2e 20 | 41 20 68 6f 73 74 00 00 |otices. |A host..|
|00002c00| 08 50 00 09 00 51 c2 61 | 70 70 6c 69 63 61 74 69 |.P...Q.a|pplicati|
|00002c10| 6f 6e 20 6d 69 67 68 74 | 20 75 73 65 20 74 68 65 |on might| use the|
|00002c20| 6d 20 74 6f 20 64 69 73 | 70 6c 61 79 20 69 6e 20 |m to dis|play in |
|00002c30| 61 6e 20 61 62 6f 75 74 | 20 62 6f 78 2c 20 6f 72 |an about| box, or|
|00002c40| 20 69 6e 20 73 6f 6d 65 | 20 6f 74 68 65 72 20 66 | in some| other f|
|00002c50| 61 73 68 69 6f 6e 2e 00 | 00 00 08 66 00 12 00 12 |ashion..|...f....|
|00002c60| c6 23 70 72 61 67 6d 61 | 20 65 78 70 6f 72 74 20 |.#pragma| export |
|00002c70| 6f 6e 00 00 08 71 00 12 | 00 1a c6 63 68 61 72 20 |on...q..|...char |
|00002c80| 2a 72 72 61 73 61 64 64 | 6f 6e 5f 49 44 4e 61 6d |*rrasadd|on_IDNam|
|00002c90| 65 28 29 3b 00 00 08 7c | 00 12 00 1c c6 63 68 61 |e();...||.....cha|
|00002ca0| 72 20 2a 72 72 61 73 61 | 64 64 6f 6e 5f 49 44 41 |r *rrasa|ddon_IDA|
|00002cb0| 75 74 68 6f 72 28 29 3b | 00 00 08 87 00 12 00 1c |uthor();|........|
|00002cc0| c6 63 68 61 72 20 2a 72 | 72 61 73 61 64 64 6f 6e |.char *r|rasaddon|
|00002cd0| 5f 49 44 4e 6f 74 69 63 | 65 28 29 3b 00 00 08 92 |_IDNotic|e();....|
|00002ce0| 00 12 00 1d c6 63 68 61 | 72 20 2a 72 72 61 73 61 |.....cha|r *rrasa|
|00002cf0| 64 64 6f 6e 5f 49 44 45 | 6e 63 6f 64 65 72 28 29 |ddon_IDE|ncoder()|
|00002d00| 3b 00 00 00 08 9d 00 12 | 00 1d c6 63 68 61 72 20 |;.......|...char |
|00002d10| 2a 72 72 61 73 61 64 64 | 6f 6e 5f 49 44 44 65 63 |*rrasadd|on_IDDec|
|00002d20| 6f 64 65 72 28 29 3b 00 | 00 00 08 a8 00 12 00 31 |oder();.|.......1|
|00002d30| c6 66 6c 6f 61 74 20 43 | 61 6e 43 72 65 61 74 65 |.float C|anCreate|
|00002d40| 49 6d 61 67 65 28 76 6f | 69 64 20 2a 62 79 74 65 |Image(vo|id *byte|
|00002d50| 73 2c 20 6c 6f 6e 67 20 | 62 79 74 65 4c 65 6e 29 |s, long |byteLen)|
|00002d60| 3b 00 00 00 08 b3 00 12 | 00 24 c6 47 66 78 49 6d |;.......|.$.GfxIm|
|00002d70| 61 67 65 20 2a 43 72 65 | 61 74 65 49 6d 61 67 65 |age *Cre|ateImage|
|00002d80| 28 42 46 69 6c 65 20 2a | 66 69 6c 65 29 3b 00 00 |(BFile *|file);..|
|00002d90| 08 be 00 12 00 13 c6 23 | 70 72 61 67 6d 61 20 65 |.......#|pragma e|
|00002da0| 78 70 6f 72 74 20 6f 66 | 66 00 00 00 08 d4 00 12 |xport of|f.......|
|00002db0| 00 1e c6 63 68 61 72 20 | 2a 49 44 4e 61 6d 65 20 |...char |*IDName |
|00002dc0| 3d 20 ff d2 47 49 46 20 | 43 6f 64 65 63 ff d3 3b |= ..GIF |Codec..;|
|00002dd0| 00 00 08 df 00 12 00 24 | c6 63 68 61 72 20 2a 49 |.......$|.char *I|
|00002de0| 44 41 75 74 68 6f 72 20 | 3d 20 ff d2 57 69 6c 6c |DAuthor |= ..Will|
|00002df0| 69 61 6d 20 41 64 61 6d | 73 ff d3 3b 00 00 08 ea |iam Adam|s..;....|
|00002e00| 00 12 00 2d c6 63 68 61 | 72 20 2a 49 44 4e 6f 74 |...-.cha|r *IDNot|
|00002e10| 69 63 65 20 3d 20 ff d2 | 43 6f 70 79 72 69 67 68 |ice = ..|Copyrigh|
|00002e20| 74 20 42 65 20 49 6e 63 | 2e 20 31 39 39 36 ff d3 |t Be Inc|. 1996..|
|00002e30| 3b 00 00 00 08 f5 00 12 | 00 1d c6 63 68 61 72 20 |;.......|...char |
|00002e40| 2a 49 44 45 6e 63 6f 64 | 65 72 20 3d 20 ff d2 49 |*IDEncod|er = ..I|
|00002e50| 44 67 69 66 ff d3 3b 00 | 00 00 09 00 00 12 00 1d |Dgif..;.|........|
|00002e60| c6 63 68 61 72 20 2a 49 | 44 44 65 63 6f 64 65 72 |.char *I|DDecoder|
|00002e70| 20 3d 20 ff d2 49 44 67 | 69 66 ff d3 3b 00 00 00 | = ..IDg|if..;...|
|00002e80| 09 16 00 12 00 19 c6 63 | 68 61 72 20 2a 72 72 61 |.......c|har *rra|
|00002e90| 73 61 64 64 6f 6e 5f 49 | 44 4e 61 6d 65 28 29 00 |saddon_I|DName().|
|00002ea0| 00 00 09 21 00 12 00 02 | c6 7b 00 00 09 2c 00 1b |...!....|.{...,..|
|00002eb0| 00 0f c6 72 65 74 75 72 | 6e 20 49 44 4e 61 6d 65 |...retur|n IDName|
|00002ec0| 3b 00 00 00 09 37 00 12 | 00 02 c6 7d 00 00 09 4d |;....7..|...}...M|
|00002ed0| 00 12 00 1b c6 63 68 61 | 72 20 2a 72 72 61 73 61 |.....cha|r *rrasa|
|00002ee0| 64 64 6f 6e 5f 49 44 41 | 75 74 68 6f 72 28 29 00 |ddon_IDA|uthor().|
|00002ef0| 00 00 09 58 00 12 00 02 | c6 7b 00 00 09 63 00 1b |...X....|.{...c..|
|00002f00| 00 11 c6 72 65 74 75 72 | 6e 20 49 44 41 75 74 68 |...retur|n IDAuth|
|00002f10| 6f 72 3b 00 00 00 09 6e | 00 12 00 02 c6 7d 00 00 |or;....n|.....}..|
|00002f20| 09 84 00 12 00 1b c6 63 | 68 61 72 20 2a 72 72 61 |.......c|har *rra|
|00002f30| 73 61 64 64 6f 6e 5f 49 | 44 4e 6f 74 69 63 65 28 |saddon_I|DNotice(|
|00002f40| 29 00 00 00 09 8f 00 12 | 00 02 c6 7b 00 00 09 9a |).......|...{....|
|00002f50| 00 1b 00 11 c6 72 65 74 | 75 72 6e 20 49 44 4e 6f |.....ret|urn IDNo|
|00002f60| 74 69 63 65 3b 00 00 00 | 09 a5 00 12 00 02 c6 7d |tice;...|.......}|
|00002f70| 00 00 09 c1 00 24 00 51 | c2 53 6f 6d 65 20 69 6d |.....$.Q|.Some im|
|00002f80| 61 67 65 20 63 6f 64 65 | 63 73 20 75 74 69 6c 69 |age code|cs utili|
|00002f90| 7a 65 20 76 65 72 79 20 | 6c 61 72 67 65 20 6c 69 |ze very |large li|
|00002fa0| 62 72 61 72 69 65 73 2e | 20 54 68 69 73 20 69 73 |braries.| This is|
|00002fb0| 20 74 72 75 65 20 66 6f | 72 20 66 6f 72 6d 61 74 | true fo|r format|
|00002fc0| 73 20 73 75 63 68 20 61 | 73 00 00 00 09 cd 00 09 |s such a|s.......|
|00002fd0| 00 53 c2 54 49 46 46 20 | 61 6e 64 20 4a 50 45 47 |.S.TIFF |and JPEG|
|00002fe0| 2e 20 46 6f 72 20 74 68 | 65 73 65 20 66 6f 72 6d |. For th|ese form|
|00002ff0| 61 74 73 2c 20 73 70 65 | 63 69 66 79 20 61 6e 20 |ats, spe|cify an |
|00003000| 61 73 73 6f 63 69 61 74 | 65 64 20 6d 6f 64 75 6c |associat|ed modul|
|00003010| 65 20 74 68 61 74 20 63 | 61 6e 20 62 65 20 75 73 |e that c|an be us|
|00003020| 65 64 20 74 6f 00 00 00 | 09 d9 00 09 00 4d c2 64 |ed to...|.....M.d|
|00003030| 65 63 6f 64 65 20 61 6e | 20 69 6d 61 67 65 2e 20 |ecode an| image. |
|00003040| 54 68 65 20 72 72 61 73 | 61 64 64 6f 6e 5f 49 44 |The rras|addon_ID|
|00003050| 45 6e 63 6f 64 65 72 28 | 29 20 61 6e 64 20 72 72 |Encoder(|) and rr|
|00003060| 61 73 61 64 64 6f 6e 5f | 44 65 63 6f 64 65 72 28 |asaddon_|Decoder(|
|00003070| 29 20 66 75 6e 63 74 69 | 6f 6e 73 00 00 00 09 e5 |) functi|ons.....|
|00003080| 00 09 00 2d c2 73 70 65 | 63 69 66 79 20 74 68 65 |...-.spe|cify the|
|00003090| 20 6e 61 6d 65 73 20 6f | 66 20 74 68 65 73 65 20 | names o|f these |
|000030a0| 65 78 74 65 72 6e 61 6c | 20 6d 6f 64 75 6c 65 73 |external| modules|
|000030b0| 2e 00 00 00 09 fb 00 12 | 00 1c c6 63 68 61 72 20 |........|...char |
|000030c0| 2a 72 72 61 73 61 64 64 | 6f 6e 5f 49 44 45 6e 63 |*rrasadd|on_IDEnc|
|000030d0| 6f 64 65 72 28 29 00 00 | 0a 06 00 12 00 02 c6 7b |oder()..|.......{|
|000030e0| 00 00 0a 11 00 1b 00 12 | c6 72 65 74 75 72 6e 20 |........|.return |
|000030f0| 49 44 45 6e 63 6f 64 65 | 72 3b 00 00 0a 1c 00 12 |IDEncode|r;......|
|00003100| 00 02 c6 7d 00 00 0a 32 | 00 12 00 1c c6 63 68 61 |...}...2|.....cha|
|00003110| 72 20 2a 72 72 61 73 61 | 64 64 6f 6e 5f 49 44 44 |r *rrasa|ddon_IDD|
|00003120| 65 63 6f 64 65 72 28 29 | 00 00 0a 3d 00 12 00 02 |ecoder()|...=....|
|00003130| c6 7b 00 00 0a 48 00 1b | 00 12 c6 72 65 74 75 72 |.{...H..|...retur|
|00003140| 6e 20 49 44 44 65 63 6f | 64 65 72 3b 00 00 0a 53 |n IDDeco|der;...S|
|00003150| 00 12 00 02 c6 7d 00 00 | 0a 6f 00 24 00 4f c2 42 |.....}..|.o.$.O.B|
|00003160| 79 20 75 73 69 6e 67 20 | 74 68 72 65 65 20 73 65 |y using |three se|
|00003170| 70 61 72 61 74 65 20 6d | 6f 64 75 6c 65 73 20 66 |parate m|odules f|
|00003180| 6f 72 20 69 64 65 6e 74 | 69 66 69 63 61 74 69 6f |or ident|ificatio|
|00003190| 6e 2c 20 64 65 63 6f 64 | 69 6e 67 2c 20 61 6e 64 |n, decod|ing, and|
|000031a0| 20 65 6e 63 6f 64 69 6e | 67 2c 20 77 65 00 00 00 | encodin|g, we...|
|000031b0| 0a 7b 00 09 00 5b c2 68 | 61 76 65 20 74 68 65 20 |.{...[.h|ave the |
|000031c0| 66 6c 65 78 69 62 69 6c | 69 74 79 20 74 6f 20 6f |flexibil|ity to o|
|000031d0| 6e 6c 79 20 6c 6f 61 64 | 20 74 68 65 20 69 64 65 |nly load| the ide|
|000031e0| 6e 74 69 66 69 63 61 74 | 69 6f 6e 20 6d 6f 64 75 |ntificat|ion modu|
|000031f0| 6c 65 20 77 69 74 68 6f | 75 74 20 68 61 76 69 6e |le witho|ut havin|
|00003200| 67 20 74 6f 20 6c 6f 61 | 64 20 61 6c 6c 20 74 68 |g to loa|d all th|
|00003210| 65 00 00 00 0a 87 00 09 | 00 5a c2 72 65 73 74 20 |e.......|.Z.rest |
|00003220| 6f 66 20 74 68 65 20 63 | 6f 64 65 20 77 69 74 68 |of the c|ode with|
|00003230| 20 69 74 2e 20 49 66 20 | 61 20 6d 6f 64 75 6c 65 | it. If |a module|
|00003240| 20 69 73 20 73 6d 61 6c | 6c 20 65 6e 6f 75 67 68 | is smal|l enough|
|00003250| 20 74 68 61 74 20 69 74 | 20 64 6f 65 73 20 6e 6f | that it| does no|
|00003260| 74 20 6d 61 6b 65 20 73 | 65 6e 73 65 20 74 6f 20 |t make s|ense to |
|00003270| 68 61 76 65 00 00 0a 93 | 00 09 00 55 c2 73 65 70 |have....|...U.sep|
|00003280| 61 72 61 74 65 20 64 65 | 63 6f 64 65 72 73 20 61 |arate de|coders a|
|00003290| 6e 64 20 65 6e 63 6f 64 | 65 72 73 2c 20 74 68 65 |nd encod|ers, the|
|000032a0| 6e 20 74 68 65 79 20 63 | 61 6e 20 61 6c 6c 20 62 |n they c|an all b|
|000032b0| 65 20 69 6e 20 6f 6e 65 | 20 66 69 6c 65 2e 20 54 |e in one| file. T|
|000032c0| 68 65 20 49 44 45 6e 63 | 6f 64 65 72 2c 20 61 6e |he IDEnc|oder, an|
|000032d0| 64 00 00 00 0a 9f 00 09 | 00 57 c2 49 44 44 65 63 |d.......|.W.IDDec|
|000032e0| 6f 64 65 72 20 73 74 72 | 69 6e 67 73 20 70 6f 69 |oder str|ings poi|
|000032f0| 6e 74 20 74 6f 20 74 68 | 65 20 6e 61 6d 65 20 6f |nt to th|e name o|
|00003300| 66 20 74 68 65 20 66 69 | 6c 65 20 74 68 61 74 20 |f the fi|le that |
|00003310| 73 68 6f 75 6c 64 20 62 | 65 20 6c 6f 61 64 65 64 |should b|e loaded|
|00003320| 20 74 6f 20 70 65 72 66 | 6f 72 6d 20 63 6f 64 65 | to perf|orm code|
|00003330| 63 00 00 00 0a ab 00 09 | 00 52 c2 74 61 73 6b 73 |c.......|.R.tasks|
|00003340| 2e 20 49 66 20 74 68 65 | 79 20 61 72 65 20 74 68 |. If the|y are th|
|00003350| 65 20 73 61 6d 65 20 61 | 73 20 74 68 65 20 63 75 |e same a|s the cu|
|00003360| 72 72 65 6e 74 20 6d 6f | 64 75 6c 65 2c 20 74 68 |rrent mo|dule, th|
|00003370| 65 6e 20 6e 6f 74 68 69 | 6e 67 20 65 6c 73 65 20 |en nothi|ng else |
|00003380| 77 69 6c 6c 20 6e 65 65 | 64 20 74 6f 00 00 0a b7 |will nee|d to....|
|00003390| 00 09 00 53 c2 68 61 70 | 70 65 6e 2e 20 49 66 20 |...S.hap|pen. If |
|000033a0| 74 68 65 79 20 61 72 65 | 20 6e 6f 74 2c 20 77 68 |they are| not, wh|
|000033b0| 65 6e 20 69 74 20 63 6f | 6d 65 73 20 74 69 6d 65 |en it co|mes time|
|000033c0| 20 74 6f 20 70 65 72 66 | 6f 72 6d 20 61 20 66 75 | to perf|orm a fu|
|000033d0| 6e 63 74 69 6f 6e 2c 20 | 74 68 65 20 61 70 70 72 |nction, |the appr|
|000033e0| 6f 70 72 69 61 74 65 00 | 00 00 0a c3 00 09 00 17 |opriate.|........|
|000033f0| c2 6d 6f 64 75 6c 65 20 | 77 69 6c 6c 20 62 65 20 |.module |will be |
|00003400| 6c 6f 61 64 65 64 2e 00 | 00 00 0a d4 00 24 00 50 |loaded..|.....$.P|
|00003410| c2 57 65 20 77 61 6e 74 | 20 74 6f 20 68 61 76 65 |.We want| to have|
|00003420| 20 74 68 65 20 61 62 69 | 6c 69 74 79 20 74 6f 20 | the abi|lity to |
|00003430| 6c 6f 61 64 20 74 68 65 | 20 62 65 73 74 20 6d 6f |load the| best mo|
|00003440| 64 75 6c 65 20 66 6f 72 | 20 74 68 65 20 6a 6f 62 |dule for| the job|
|00003450| 20 66 72 6f 6d 20 77 69 | 74 68 69 6e 20 6f 75 72 | from wi|thin our|
|00003460| 00 00 0a e0 00 09 00 59 | c2 61 70 70 6c 69 63 61 |.......Y|.applica|
|00003470| 74 69 6f 6e 2e 20 57 65 | 20 67 69 76 65 20 74 68 |tion. We| give th|
|00003480| 65 20 6d 6f 64 75 6c 65 | 20 61 20 63 68 61 6e 63 |e module| a chanc|
|00003490| 65 20 74 6f 20 61 64 76 | 65 72 74 69 73 65 20 69 |e to adv|ertise i|
|000034a0| 74 73 20 63 6f 6e 66 69 | 64 65 6e 63 65 20 74 68 |ts confi|dence th|
|000034b0| 61 74 20 69 74 20 63 61 | 6e 20 70 65 72 66 6f 72 |at it ca|n perfor|
|000034c0| 6d 00 00 00 0a ec 00 09 | 00 5c c2 61 20 64 65 63 |m.......|.\.a dec|
|000034d0| 6f 64 69 6e 67 20 74 61 | 73 6b 2e 20 49 74 20 69 |oding ta|sk. It i|
|000034e0| 73 20 70 61 73 73 65 64 | 20 61 20 63 68 75 6e 6b |s passed| a chunk|
|000034f0| 20 6f 66 20 64 61 74 61 | 20 66 72 6f 6d 20 74 68 | of data| from th|
|00003500| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|00003510| 68 65 20 66 69 6c 65 2c | 20 61 6e 64 20 66 72 6f |he file,| and fro|
|00003520| 6d 20 74 68 69 73 00 00 | 0a f8 00 09 00 52 c2 69 |m this..|.....R.i|
|00003530| 74 20 6d 75 73 74 20 64 | 65 74 65 72 6d 69 6e 65 |t must d|etermine|
|00003540| 20 77 68 65 74 68 65 72 | 20 6f 72 20 6e 6f 74 20 | whether| or not |
|00003550| 69 74 20 77 6f 75 6c 64 | 20 62 65 20 61 62 6c 65 |it would| be able|
|00003560| 20 74 6f 20 70 65 72 66 | 6f 72 6d 20 74 68 65 20 | to perf|orm the |
|00003570| 74 61 73 6b 2e 20 54 68 | 65 20 6d 6f 64 75 6c 65 |task. Th|e module|
|00003580| 00 00 0b 04 00 09 00 59 | c2 72 65 74 75 72 6e 73 |.......Y|.returns|
|00003590| 20 61 20 30 2e 30 20 74 | 6f 20 31 2e 30 20 66 6c | a 0.0 t|o 1.0 fl|
|000035a0| 6f 61 74 20 76 61 6c 75 | 65 2e 20 49 66 20 69 74 |oat valu|e. If it|
|000035b0| 20 63 61 6e 6e 6f 74 20 | 70 65 72 66 6f 72 6d 20 | cannot |perform |
|000035c0| 61 6e 79 20 61 63 74 69 | 6f 6e 73 20 6f 6e 20 74 |any acti|ons on t|
|000035d0| 68 65 20 64 61 74 61 2c | 20 69 74 20 77 6f 75 6c |he data,| it woul|
|000035e0| 64 00 00 00 0b 10 00 09 | 00 58 c2 72 65 74 75 72 |d.......|.X.retur|
|000035f0| 6e 20 61 20 30 2e 30 20 | 76 61 6c 75 65 2e 20 49 |n a 0.0 |value. I|
|00003600| 66 20 69 74 20 69 73 20 | 63 65 72 74 61 69 6e 20 |f it is |certain |
|00003610| 74 68 61 74 20 69 74 20 | 63 6f 75 6c 64 20 64 65 |that it |could de|
|00003620| 63 6f 64 65 20 74 68 65 | 20 69 6d 61 67 65 20 63 |code the| image c|
|00003630| 6f 6d 70 6c 65 74 65 6c | 79 20 74 6f 20 73 70 65 |ompletel|y to spe|
|00003640| 63 2c 00 00 0b 1c 00 09 | 00 58 c2 74 68 65 6e 20 |c,......|.X.then |
|00003650| 69 74 20 77 6f 75 6c 64 | 20 72 65 74 75 72 6e 20 |it would| return |
|00003660| 61 20 31 2e 30 20 76 61 | 6c 75 65 2e 20 49 66 20 |a 1.0 va|lue. If |
|00003670| 69 74 20 69 73 20 73 6f | 6d 65 77 68 65 72 65 20 |it is so|mewhere |
|00003680| 69 6e 20 62 65 74 77 65 | 65 6e 2c 20 28 69 74 20 |in betwe|en, (it |
|00003690| 63 6f 75 6c 64 20 64 65 | 63 6f 64 65 20 73 6f 6d |could de|code som|
|000036a0| 65 2c 00 00 0b 28 00 09 | 00 33 c2 62 75 74 20 6e |e,...(..|.3.but n|
|000036b0| 6f 74 20 61 6c 6c 20 76 | 61 72 69 61 6e 74 73 29 |ot all v|ariants)|
|000036c0| 20 69 74 20 6d 69 67 68 | 74 20 72 65 74 75 72 6e | it migh|t return|
|000036d0| 20 61 20 30 2e 38 20 76 | 61 6c 75 65 2e 00 00 00 | a 0.8 v|alue....|
|000036e0| 0b 3e 00 12 00 06 c6 66 | 6c 6f 61 74 00 00 0b 49 |.>.....f|loat...I|
|000036f0| 00 12 00 29 c6 43 61 6e | 43 72 65 61 74 65 49 6d |...).Can|CreateIm|
|00003700| 61 67 65 28 76 6f 69 64 | 20 2a 64 61 74 61 2c 20 |age(void| *data, |
|00003710| 6c 6f 6e 67 20 64 61 74 | 61 4c 65 6e 29 00 00 00 |long dat|aLen)...|
|00003720| 0b 54 00 12 00 02 c6 7b | 00 00 0b 5f 00 1b 00 11 |.T.....{|..._....|
|00003730| c6 69 66 20 28 64 61 74 | 61 4c 65 6e 20 3c 20 36 |.if (dat|aLen < 6|
|00003740| 29 00 00 00 0b 6a 00 28 | 00 0c c6 72 65 74 75 72 |)....j.(|...retur|
|00003750| 6e 20 30 2e 30 3b 00 00 | 0b 80 00 1b 00 38 c6 69 |n 0.0;..|.....8.i|
|00003760| 66 20 28 73 74 72 6e 63 | 6d 70 28 28 63 68 61 72 |f (strnc|mp((char|
|00003770| 20 2a 29 20 64 61 74 61 | 2c ff d3 47 49 46 38 37 | *) data|,..GIF87|
|00003780| 61 ff d3 2c 20 28 73 69 | 7a 65 5f 74 29 20 36 29 |a.., (si|ze_t) 6)|
|00003790| 3d 3d 30 20 7c 7c 00 00 | 0b 8b 00 28 00 32 c6 73 |==0 ||..|...(.2.s|
|000037a0| 74 72 6e 63 6d 70 28 28 | 63 68 61 72 20 2a 29 20 |trncmp((|char *) |
|000037b0| 64 61 74 61 2c ff d3 47 | 49 46 38 39 61 ff d3 2c |data,..G|IF89a..,|
|000037c0| 20 28 73 69 7a 65 5f 74 | 29 20 36 29 3d 3d 30 29 | (size_t|) 6)==0)|
|000037d0| 00 00 0b 96 00 28 00 0c | c6 72 65 74 75 72 6e 20 |.....(..|.return |
|000037e0| 31 2e 30 3b 00 00 0b ac | 00 1b 00 0c c6 72 65 74 |1.0;....|.....ret|
|000037f0| 75 72 6e 20 30 2e 30 3b | 00 00 0b b7 00 12 00 02 |urn 0.0;|........|
|00003800| c6 7d 00 00 0b d3 00 24 | 00 4d c2 43 72 65 61 74 |.}.....$|.M.Creat|
|00003810| 65 49 6d 61 67 65 28 29 | 20 69 73 20 74 68 65 20 |eImage()| is the |
|00003820| 6d 65 61 74 20 6f 66 20 | 74 68 65 20 64 65 63 6f |meat of |the deco|
|00003830| 64 69 6e 67 20 70 72 6f | 63 65 73 73 2e 20 57 65 |ding pro|cess. We|
|00003840| 20 61 73 73 75 6d 65 20 | 74 68 61 74 20 74 68 65 | assume |that the|
|00003850| 20 6d 6f 64 75 6c 65 00 | 00 00 0b df 00 09 00 58 | module.|.......X|
|00003860| c2 77 61 73 20 61 6c 72 | 65 61 64 79 20 61 73 6b |.was alr|eady ask|
|00003870| 65 64 20 77 68 65 74 68 | 65 72 20 69 74 20 63 61 |ed wheth|er it ca|
|00003880| 6e 20 64 65 63 6f 64 65 | 20 74 68 65 20 69 6d 61 |n decode| the ima|
|00003890| 67 65 2c 20 61 6e 64 20 | 74 68 61 74 20 77 65 20 |ge, and |that we |
|000038a0| 68 61 76 65 20 74 68 65 | 20 42 46 69 6c 65 20 6f |have the| BFile o|
|000038b0| 62 6a 65 63 74 20 74 6f | 00 00 0b eb 00 09 00 57 |bject to|.......W|
|000038c0| c2 63 72 65 61 74 65 20 | 61 6e 20 69 6d 61 67 65 |.create |an image|
|000038d0| 20 66 72 6f 6d 2e 20 49 | 74 20 6f 70 65 6e 73 20 | from. I|t opens |
|000038e0| 74 68 65 20 66 69 6c 65 | 2c 20 73 65 65 6b 73 20 |the file|, seeks |
|000038f0| 74 6f 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |to the b|eginning|
|00003900| 2c 20 61 6e 64 20 63 61 | 6c 6c 73 20 74 68 65 20 |, and ca|lls the |
|00003910| 52 65 61 64 47 49 46 00 | 00 00 0b f7 00 09 00 0a |ReadGIF.|........|
|00003920| c2 66 75 6e 63 74 69 6f | 6e 2e 00 00 0c 0d 00 12 |.functio|n.......|
|00003930| 00 0b c6 47 66 78 49 6d | 61 67 65 20 2a 00 00 00 |...GfxIm|age *...|
|00003940| 0c 18 00 12 00 19 c6 43 | 72 65 61 74 65 49 6d 61 |.......C|reateIma|
|00003950| 67 65 28 42 46 69 6c 65 | 20 2a 66 69 6c 65 29 00 |ge(BFile| *file).|
|00003960| 00 00 0c 23 00 12 00 02 | c6 7b 00 00 0c 2e 00 1b |...#....|.{......|
|00003970| 00 0b c6 69 66 20 28 21 | 66 69 6c 65 29 00 00 00 |...if (!|file)...|
|00003980| 0c 39 00 28 00 0a c6 72 | 65 74 75 72 6e 20 30 3b |.9.(...r|eturn 0;|
|00003990| 00 00 0c 4f 00 1b 00 18 | c6 47 66 78 49 6d 61 67 |...O....|.GfxImag|
|000039a0| 65 20 2a 6e 65 77 49 6d | 61 67 65 20 3d 20 30 3b |e *newIm|age = 0;|
|000039b0| 00 00 0c 65 00 1b 00 15 | c6 69 6e 74 20 69 6d 61 |...e....|.int ima|
|000039c0| 67 65 4e 75 6d 62 65 72 | 20 3d 20 31 3b 00 00 00 |geNumber| = 1;...|
|000039d0| 0c 7b 00 1b 00 19 c6 66 | 69 6c 65 2d 3e 4f 70 65 |.{.....f|ile->Ope|
|000039e0| 6e 28 42 5f 52 45 41 44 | 5f 4f 4e 4c 59 29 3b 00 |n(B_READ|_ONLY);.|
|000039f0| 00 00 0c 86 00 1b 00 1b | c6 66 69 6c 65 2d 3e 53 |........|.file->S|
|00003a00| 65 65 6b 28 30 2c 20 42 | 5f 53 45 45 4b 5f 54 4f |eek(0, B|_SEEK_TO|
|00003a10| 50 29 3b 00 00 00 0c 9c | 00 1b 00 27 c6 6e 65 77 |P);.....|...'.new|
|00003a20| 49 6d 61 67 65 20 3d 20 | 52 65 61 64 47 49 46 28 |Image = |ReadGIF(|
|00003a30| 66 69 6c 65 2c 20 69 6d | 61 67 65 4e 75 6d 62 65 |file, im|ageNumbe|
|00003a40| 72 29 3b 00 00 00 0c b2 | 00 1b 00 11 c6 72 65 74 |r);.....|.....ret|
|00003a50| 75 72 6e 20 6e 65 77 49 | 6d 61 67 65 3b 00 00 00 |urn newI|mage;...|
|00003a60| 0c bd 00 12 00 02 c6 7d | 00 00 0c d9 00 24 00 56 |.......}|.....$.V|
|00003a70| c2 54 68 65 20 52 65 61 | 64 47 49 46 20 66 75 6e |.The Rea|dGIF fun|
|00003a80| 63 74 69 6f 6e 20 69 73 | 20 61 20 74 79 70 69 63 |ction is| a typic|
|00003a90| 61 6c 20 47 49 46 20 64 | 65 63 6f 64 69 6e 67 20 |al GIF d|ecoding |
|00003aa0| 63 6f 64 65 2e 20 49 74 | 20 77 69 6c 6c 20 74 75 |code. It| will tu|
|00003ab0| 72 6e 20 74 68 65 20 42 | 46 69 6c 65 20 64 61 74 |rn the B|File dat|
|00003ac0| 61 20 69 6e 74 6f 00 00 | 0c e5 00 09 00 58 c2 61 |a into..|.....X.a|
|00003ad0| 20 47 66 78 49 6d 61 67 | 65 20 73 74 72 75 63 74 | GfxImag|e struct|
|00003ae0| 75 72 65 2c 20 74 68 65 | 6e 20 72 65 74 75 72 6e |ure, the|n return|
|00003af0| 20 69 74 20 74 6f 20 74 | 68 65 20 63 61 6c 6c 65 | it to t|he calle|
|00003b00| 72 2e 20 54 68 65 20 57 | 72 69 74 65 49 6d 61 67 |r. The W|riteImag|
|00003b10| 65 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 73 69 |e functi|on is si|
|00003b20| 6d 69 6c 61 72 2e 00 00 | 0c f1 00 09 00 53 c2 41 |milar...|.....S.A|
|00003b30| 74 20 74 68 69 73 20 70 | 6f 69 6e 74 2c 20 77 65 |t this p|oint, we|
|00003b40| 20 68 61 76 65 20 61 20 | 6e 69 63 65 20 6c 69 74 | have a |nice lit|
|00003b50| 74 6c 65 20 66 75 6e 63 | 74 69 6f 6e 20 6c 69 62 |tle func|tion lib|
|00003b60| 72 61 72 79 20 74 6f 20 | 63 72 65 61 74 65 20 47 |rary to |create G|
|00003b70| 66 78 49 6d 61 67 65 73 | 20 66 72 6f 6d 20 47 49 |fxImages| from GI|
|00003b80| 46 00 00 00 0c fd 00 09 | 00 54 c2 65 6e 63 6f 64 |F.......|.T.encod|
|00003b90| 65 64 20 66 69 6c 65 73 | 2e 20 59 6f 75 20 63 6f |ed files|. You co|
|00003ba0| 75 6c 64 20 6a 75 73 74 | 20 6c 69 6e 6b 20 74 68 |uld just| link th|
|00003bb0| 69 73 20 69 6e 74 6f 20 | 79 6f 75 72 20 61 70 70 |is into |your app|
|00003bc0| 6c 69 63 61 74 69 6f 6e | 20 61 6e 64 20 79 6f 75 |lication| and you|
|00003bd0| 20 77 6f 75 6c 64 20 62 | 65 20 73 65 74 2e 00 00 | would b|e set...|
|00003be0| 0d 09 00 09 00 42 c2 48 | 6f 77 65 76 65 72 2c 20 |.....B.H|owever, |
|00003bf0| 77 65 20 73 74 69 6c 6c | 20 68 61 76 65 20 6e 6f |we still| have no|
|00003c00| 74 20 61 63 68 69 65 76 | 65 64 20 74 68 65 20 ff |t achiev|ed the .|
|00003c10| d2 6f 6e 65 20 63 61 6c | 6c 20 64 6f 65 73 20 69 |.one cal|l does i|
|00003c20| 74 20 61 6c 6c 2e ff d3 | 00 00 0d 30 00 24 00 49 |t all...|...0.$.I|
|00003c30| c2 44 79 6e 61 6d 69 63 | 61 6c 6c 79 20 6c 6f 61 |.Dynamic|ally loa|
|00003c40| 64 69 6e 67 20 6d 6f 64 | 75 6c 65 73 2c 20 73 65 |ding mod|ules, se|
|00003c50| 61 72 63 68 69 6e 67 20 | 66 6f 72 20 73 79 6d 62 |arching |for symb|
|00003c60| 6f 6c 73 2c 20 61 6e 64 | 20 63 61 6c 6c 69 6e 67 |ols, and| calling|
|00003c70| 20 66 75 6e 63 74 69 6f | 6e 00 00 00 0d 3c 00 09 | functio|n....<..|
|00003c80| 00 5c c2 70 6f 69 6e 74 | 65 72 73 20 61 72 65 20 |.\.point|ers are |
|00003c90| 61 6c 6c 20 64 6f 61 62 | 6c 65 2c 20 62 75 74 20 |all doab|le, but |
|00003ca0| 69 74 ff d5 73 20 6e 6f | 74 20 63 6f 64 65 20 74 |it..s no|t code t|
|00003cb0| 68 61 74 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |hat you |want to |
|00003cc0| 6b 65 65 70 20 77 72 69 | 74 69 6e 67 2e 20 49 74 |keep wri|ting. It|
|00003cd0| 20 69 73 20 73 69 6d 69 | 6c 61 72 20 74 6f 00 00 | is simi|lar to..|
|00003ce0| 0d 48 00 09 00 56 c2 74 | 68 65 20 42 53 44 20 73 |.H...V.t|he BSD s|
|00003cf0| 6f 63 6b 65 74 ff d5 73 | 20 63 6f 64 65 2e 20 45 |ocket..s| code. E|
|00003d00| 76 65 72 79 20 74 69 6d | 65 20 79 6f 75 20 77 72 |very tim|e you wr|
|00003d10| 69 74 65 20 69 74 20 74 | 68 65 72 65 20 69 73 20 |ite it t|here is |
|00003d20| 6f 70 70 6f 72 74 75 6e | 69 74 79 20 66 6f 72 20 |opportun|ity for |
|00003d30| 6d 69 73 74 61 6b 65 73 | 2e 20 57 65 00 00 0d 54 |mistakes|. We...T|
|00003d40| 00 09 00 59 c2 63 72 65 | 61 74 65 20 74 68 65 20 |...Y.cre|ate the |
|00003d50| 47 66 78 43 6f 64 65 63 | 20 6f 62 6a 65 63 74 20 |GfxCodec| object |
|00003d60| 74 68 61 74 20 70 65 72 | 66 6f 72 6d 73 20 65 78 |that per|forms ex|
|00003d70| 61 63 74 6c 79 20 74 68 | 65 73 65 20 74 61 73 6b |actly th|ese task|
|00003d80| 73 2e 20 20 57 65 20 64 | 6f 20 6e 6f 74 20 77 61 |s. We d|o not wa|
|00003d90| 6e 74 20 74 6f 20 68 61 | 76 65 20 74 6f 00 00 00 |nt to ha|ve to...|
|00003da0| 0d 60 00 09 00 54 c2 77 | 72 69 74 65 20 61 20 6e |.`...T.w|rite a n|
|00003db0| 65 77 20 73 75 62 2d 63 | 6c 61 73 73 20 6f 66 20 |ew sub-c|lass of |
|00003dc0| 47 66 78 43 6f 64 65 63 | 20 66 6f 72 20 65 76 65 |GfxCodec| for eve|
|00003dd0| 72 79 20 6e 65 77 20 67 | 72 61 70 68 69 63 20 66 |ry new g|raphic f|
|00003de0| 6f 72 6d 61 74 20 74 68 | 61 74 20 63 6f 6d 65 73 |ormat th|at comes|
|00003df0| 20 61 6c 6f 6e 67 2e 20 | 49 66 00 00 0d 6c 00 09 | along. |If...l..|
|00003e00| 00 48 c2 77 65 20 64 69 | 64 2c 20 77 65 20 77 6f |.H.we di|d, we wo|
|00003e10| 75 6c 64 20 68 61 76 65 | 20 74 6f 20 72 65 2d 6c |uld have| to re-l|
|00003e20| 69 6e 6b 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |ink the |applicat|
|00003e30| 69 6f 6e 20 66 6f 72 20 | 65 61 63 68 20 6e 65 77 |ion for |each new|
|00003e40| 20 61 64 64 69 74 69 6f | 6e 2e 00 00 0d 82 00 12 | additio|n.......|
|00003e50| 00 0f c6 63 6c 61 73 73 | 20 47 66 78 43 6f 64 65 |...class| GfxCode|
|00003e60| 63 00 00 00 0d 8d 00 12 | 00 02 c6 7b 00 00 0d 98 |c.......|...{....|
|00003e70| 00 12 00 08 c6 70 75 62 | 6c 69 63 3a 00 00 0d a3 |.....pub|lic:....|
|00003e80| 00 28 00 21 c6 47 66 78 | 43 6f 64 65 63 28 42 44 |.(.!.Gfx|Codec(BD|
|00003e90| 69 72 65 63 74 6f 72 79 | 20 2a 2c 20 42 46 69 6c |irectory| *, BFil|
|00003ea0| 65 2a 20 29 3b 00 00 00 | 0d ae 00 28 00 0d c6 7e |e* );...|...(...~|
|00003eb0| 47 66 78 43 6f 64 65 63 | 28 29 3b 00 00 00 0d c4 |GfxCodec|();.....|
|00003ec0| 00 12 00 27 c6 76 69 72 | 74 75 61 6c 20 66 6c 6f |...'.vir|tual flo|
|00003ed0| 61 74 8c 43 61 6e 43 72 | 65 61 74 65 49 6d 61 67 |at.CanCr|eateImag|
|00003ee0| 65 28 42 46 69 6c 65 20 | 2a 29 3b 00 00 00 0d cf |e(BFile |*);.....|
|00003ef0| 00 12 00 29 c6 76 69 72 | 74 75 61 6c 20 47 66 78 |...).vir|tual Gfx|
|00003f00| 49 6d 61 67 65 20 2a 20 | 43 72 65 61 74 65 49 6d |Image * |CreateIm|
|00003f10| 61 67 65 28 42 46 69 6c | 65 20 2a 29 3b 00 00 00 |age(BFil|e *);...|
|00003f20| 0d da 00 12 00 2d c6 76 | 69 72 74 75 61 6c 20 76 |.....-.v|irtual v|
|00003f30| 6f 69 64 84 57 72 69 74 | 65 49 6d 61 67 65 28 47 |oid.Writ|eImage(G|
|00003f40| 66 78 49 6d 61 67 65 2a | 2c 20 42 46 69 6c 65 20 |fxImage*|, BFile |
|00003f50| 2a 29 3b 00 00 00 0d f0 | 00 12 00 18 c6 76 69 72 |*);.....|.....vir|
|00003f60| 74 75 61 6c 20 62 6f 6f | 6c 20 49 73 56 61 6c 69 |tual boo|l IsVali|
|00003f70| 64 28 29 3b 00 00 0d fb | 00 12 00 16 c6 76 69 72 |d();....|.....vir|
|00003f80| 74 75 61 6c 20 76 6f 69 | 64 20 50 72 69 6e 74 28 |tual voi|d Print(|
|00003f90| 29 3b 00 00 0e 10 00 1b | 00 3b c7 2f 2f 20 50 6f |);......|.;.// Po|
|00003fa0| 69 6e 74 65 72 20 74 6f | 20 6e 65 78 74 20 63 6f |inter to| next co|
|00003fb0| 64 65 63 20 73 6f 20 61 | 20 63 68 61 69 6e 20 63 |dec so a| chain c|
|00003fc0| 61 6e 20 62 65 20 63 72 | 65 61 74 65 64 20 65 61 |an be cr|eated ea|
|00003fd0| 73 69 6c 79 2e 00 00 00 | 0e 1b 00 12 00 10 c6 47 |sily....|.......G|
|00003fe0| 66 78 43 6f 64 65 63 20 | 2a 6e 65 78 74 3b 00 00 |fxCodec |*next;..|
|00003ff0| 0e 26 00 12 00 0b c6 70 | 72 6f 74 65 63 74 65 64 |.&.....p|rotected|
|00004000| 3a 00 00 00 0e 3b 00 1b | 00 50 c7 2f 2f 20 49 6e |:....;..|.P.// In|
|00004010| 66 6f 72 6d 61 74 69 6f | 6e 61 6c 20 73 74 75 66 |formatio|nal stuf|
|00004020| 66 20 73 6f 20 74 68 61 | 74 20 77 65 20 63 61 6e |f so tha|t we can|
|00004030| 20 69 64 65 6e 74 69 66 | 79 20 74 68 65 20 61 64 | identif|y the ad|
|00004040| 64 2d 6f 6e 20 61 6e 64 | 20 66 69 6e 64 20 6f 74 |d-on and| find ot|
|00004050| 68 65 72 20 70 61 72 74 | 73 2e 00 00 0e 46 00 1b |her part|s....F..|
|00004060| 00 1b c6 42 44 69 72 65 | 63 74 6f 72 79 87 66 42 |...BDire|ctory.fB|
|00004070| 61 73 65 44 69 72 65 63 | 74 6f 72 79 3b 00 00 00 |aseDirec|tory;...|
|00004080| 0e 51 00 1b 00 25 c6 63 | 68 61 72 20 98 66 42 61 |.Q...%.c|har .fBa|
|00004090| 73 65 4e 61 6d 65 5b 42 | 5f 46 49 4c 45 5f 4e 41 |seName[B|_FILE_NA|
|000040a0| 4d 45 5f 4c 45 4e 47 54 | 48 5d 3b 00 00 00 0e 66 |ME_LENGT|H];....f|
|000040b0| 00 1b 00 47 c7 2f 2f 20 | 46 75 6e 63 74 69 6f 6e |...G.// |Function|
|000040c0| 20 70 6f 69 6e 74 65 72 | 73 20 69 6e 20 74 68 65 | pointer|s in the|
|000040d0| 20 69 64 65 6e 74 69 66 | 69 65 72 20 6d 6f 64 75 | identif|ier modu|
|000040e0| 6c 65 20 77 69 74 68 20 | 75 73 65 66 75 6c 20 69 |le with |useful i|
|000040f0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 00 00 00 0e 71 |nformati|on.....q|
|00004100| 00 1b 00 19 c6 63 68 61 | 72 83 2a 28 2a 61 64 64 |.....cha|r.*(*add|
|00004110| 6f 6e 5f 49 44 4e 61 6d | 65 29 28 29 3b 00 00 00 |on_IDNam|e)();...|
|00004120| 0e 7c 00 1b 00 1b c6 63 | 68 61 72 83 2a 28 2a 61 |.|.....c|har.*(*a|
|00004130| 64 64 6f 6e 5f 49 44 41 | 75 74 68 6f 72 29 28 29 |ddon_IDA|uthor)()|
|00004140| 3b 00 00 00 0e 87 00 1b | 00 1b c6 63 68 61 72 83 |;.......|...char.|
|00004150| 2a 28 2a 61 64 64 6f 6e | 5f 49 44 4e 6f 74 69 63 |*(*addon|_IDNotic|
|00004160| 65 29 28 29 3b 00 00 00 | 0e 92 00 1b 00 1c c6 63 |e)();...|.......c|
|00004170| 68 61 72 83 2a 28 2a 61 | 64 64 6f 6e 5f 49 44 45 |har.*(*a|ddon_IDE|
|00004180| 6e 63 6f 64 65 72 29 28 | 29 3b 00 00 0e 9d 00 1b |ncoder)(|);......|
|00004190| 00 1c c6 63 68 61 72 83 | 2a 28 2a 61 64 64 6f 6e |...char.|*(*addon|
|000041a0| 5f 49 44 44 65 63 6f 64 | 65 72 29 28 29 3b 00 00 |_IDDecod|er)();..|
|000041b0| 0e b3 00 1b 00 28 c6 66 | 6c 6f 61 74 8a 28 2a 61 |.....(.f|loat.(*a|
|000041c0| 64 64 6f 6e 5f 43 61 6e | 43 72 65 61 74 65 29 28 |ddon_Can|Create)(|
|000041d0| 76 6f 69 64 20 2a 2c 20 | 6c 6f 6e 67 29 3b 00 00 |void *, |long);..|
|000041e0| 0e be 00 1b 00 29 c6 47 | 66 78 49 6d 61 67 65 86 |.....).G|fxImage.|
|000041f0| 2a 28 2a 61 64 64 6f 6e | 5f 43 72 65 61 74 65 49 |*(*addon|_CreateI|
|00004200| 6d 61 67 65 29 28 42 46 | 69 6c 65 20 2a 29 3b 00 |mage)(BF|ile *);.|
|00004210| 00 00 0e c9 00 1b 00 23 | c6 6c 6f 6e 67 83 28 2a |.......#|.long.(*|
|00004220| 61 64 64 6f 6e 5f 57 72 | 69 74 65 49 6d 61 67 65 |addon_Wr|iteImage|
|00004230| 29 28 42 46 69 6c 65 20 | 2a 29 3b 00 00 00 0e df |)(BFile |*);.....|
|00004240| 00 1b 00 16 c6 69 6d 61 | 67 65 5f 69 64 86 66 49 |.....ima|ge_id.fI|
|00004250| 64 65 6e 74 69 66 69 65 | 72 3b 00 00 0e ea 00 1b |dentifie|r;......|
|00004260| 00 13 c6 69 6d 61 67 65 | 5f 69 64 86 66 44 65 63 |...image|_id.fDec|
|00004270| 6f 64 65 72 3b 00 00 00 | 0e f5 00 1b 00 13 c6 69 |oder;...|.......i|
|00004280| 6d 61 67 65 5f 69 64 86 | 66 45 6e 63 6f 64 65 72 |mage_id.|fEncoder|
|00004290| 3b 00 00 00 0f 0b 00 12 | 00 09 c6 70 72 69 76 61 |;.......|...priva|
|000042a0| 74 65 3a 00 00 00 0f 21 | 00 12 00 03 c6 7d 3b 00 |te:....!|.....};.|
|000042b0| 00 00 0f 3d 00 24 00 52 | c2 54 68 65 20 47 66 78 |...=.$.R|.The Gfx|
|000042c0| 43 6f 64 65 63 20 6f 62 | 6a 65 63 74 20 69 73 20 |Codec ob|ject is |
|000042d0| 63 6f 6e 73 74 72 75 63 | 74 65 64 20 77 69 74 68 |construc|ted with|
|000042e0| 20 42 44 69 72 65 63 74 | 6f 72 79 20 61 6e 64 20 | BDirect|ory and |
|000042f0| 61 20 42 46 69 6c 65 20 | 6f 62 6a 65 63 74 2e 20 |a BFile |object. |
|00004300| 54 68 65 73 65 20 74 65 | 6c 6c 00 00 0f 49 00 09 |These te|ll...I..|
|00004310| 00 59 c2 74 68 65 20 63 | 6f 64 65 63 20 77 68 65 |.Y.the c|odec whe|
|00004320| 72 65 20 69 74 20 63 61 | 6e 20 66 69 6e 64 20 74 |re it ca|n find t|
|00004330| 68 65 20 61 64 64 2d 6f | 6e 20 63 6f 64 65 20 74 |he add-o|n code t|
|00004340| 68 61 74 20 77 69 6c 6c | 20 62 65 20 75 73 65 64 |hat will| be used|
|00004350| 2e 20 49 6e 20 74 68 65 | 20 42 65 4f 53 2c 20 61 |. In the| BeOS, a|
|00004360| 6e 20 61 64 64 2d 6f 6e | 20 69 73 00 00 00 0f 55 |n add-on| is....U|
|00004370| 00 09 00 49 c2 6e 6f 74 | 68 69 6e 67 20 6d 6f 72 |...I.not|hing mor|
|00004380| 65 20 74 68 61 6e 20 61 | 20 73 68 61 72 65 64 20 |e than a| shared |
|00004390| 6c 69 62 72 61 72 79 2e | 20 54 68 65 20 50 6f 77 |library.| The Pow|
|000043a0| 65 72 50 43 20 61 6e 64 | 20 50 45 46 20 66 6f 72 |erPC and| PEF for|
|000043b0| 6d 61 74 20 61 6c 6c 6f | 77 20 66 6f 72 00 00 00 |mat allo|w for...|
|000043c0| 0f 61 00 09 00 56 c2 64 | 79 6e 61 6d 69 63 61 6c |.a...V.d|ynamical|
|000043d0| 6c 79 20 6c 6f 61 64 69 | 6e 67 20 63 6f 64 65 20 |ly loadi|ng code |
|000043e0| 61 74 20 72 75 6e 2d 74 | 69 6d 65 2c 20 68 61 76 |at run-t|ime, hav|
|000043f0| 69 6e 67 20 74 68 65 20 | 61 62 69 6c 69 74 79 20 |ing the |ability |
|00004400| 74 6f 20 6c 6f 61 64 20 | 63 6f 64 65 20 61 6e 64 |to load |code and|
|00004410| 20 67 65 74 20 73 79 6d | 62 6f 6c 73 00 00 0f 6d | get sym|bols...m|
|00004420| 00 09 00 56 c2 61 6e 64 | 20 66 75 6e 63 74 69 6f |...V.and| functio|
|00004430| 6e 20 70 6f 69 6e 74 65 | 72 73 2e 20 54 68 69 73 |n pointe|rs. This|
|00004440| 20 61 62 69 6c 69 74 79 | 20 69 73 20 61 74 20 74 | ability| is at t|
|00004450| 68 65 20 68 65 61 72 74 | 20 6f 66 20 6f 75 72 20 |he heart| of our |
|00004460| 63 6f 64 65 ff d5 73 20 | 65 78 74 65 6e 73 69 62 |code..s |extensib|
|00004470| 69 6c 69 74 79 2e 20 54 | 68 65 00 00 0f 79 00 09 |ility. T|he...y..|
|00004480| 00 2b c2 63 6f 6e 73 74 | 72 75 63 74 6f 72 20 66 |.+.const|ructor f|
|00004490| 6f 72 20 74 68 65 20 63 | 6f 64 65 63 20 6c 6f 6f |or the c|odec loo|
|000044a0| 6b 73 20 6c 69 6b 65 20 | 74 68 69 73 3a 00 00 00 |ks like |this:...|
|000044b0| 0f 8f 00 12 00 39 c6 47 | 66 78 43 6f 64 65 63 3a |.....9.G|fxCodec:|
|000044c0| 3a 47 66 78 43 6f 64 65 | 63 28 42 44 69 72 65 63 |:GfxCode|c(BDirec|
|000044d0| 74 6f 72 79 20 2a 64 69 | 72 65 63 74 6f 72 79 2c |tory *di|rectory,|
|000044e0| 20 42 46 69 6c 65 2a 20 | 61 5f 66 69 6c 65 29 00 | BFile* |a_file).|
|000044f0| 00 00 0f 9a 00 1b 00 13 | c6 3a 20 61 64 64 6f 6e |........|.: addon|
|00004500| 5f 49 44 4e 61 6d 65 28 | 30 29 2c 00 00 00 0f a5 |_IDName(|0),.....|
|00004510| 00 1b 00 13 c6 61 64 64 | 6f 6e 5f 49 44 41 75 74 |.....add|on_IDAut|
|00004520| 68 6f 72 28 30 29 2c 00 | 00 00 0f b0 00 1b 00 13 |hor(0),.|........|
|00004530| c6 61 64 64 6f 6e 5f 49 | 44 4e 6f 74 69 63 65 28 |.addon_I|DNotice(|
|00004540| 30 29 2c 00 00 00 0f bb | 00 1b 00 14 c6 61 64 64 |0),.....|.....add|
|00004550| 6f 6e 5f 49 44 45 6e 63 | 6f 64 65 72 28 30 29 2c |on_IDEnc|oder(0),|
|00004560| 00 00 0f c6 00 1b 00 14 | c6 61 64 64 6f 6e 5f 49 |........|.addon_I|
|00004570| 44 44 65 63 6f 64 65 72 | 28 30 29 2c 00 00 0f d1 |DDecoder|(0),....|
|00004580| 00 1b 00 13 c6 61 64 64 | 6f 6e 5f 43 61 6e 43 72 |.....add|on_CanCr|
|00004590| 65 61 74 65 28 30 29 00 | 00 00 0f dc 00 12 00 02 |eate(0).|........|
|000045a0| c6 7b 00 00 0f e7 00 1b | 00 1c c6 61 5f 66 69 6c |.{......|...a_fil|
|000045b0| 65 2d 3e 47 65 74 4e 61 | 6d 65 28 66 42 61 73 65 |e->GetNa|me(fBase|
|000045c0| 4e 61 6d 65 29 3b 00 00 | 0f f2 00 1b 00 1d c6 66 |Name);..|.......f|
|000045d0| 42 61 73 65 44 69 72 65 | 63 74 6f 72 79 20 3d 20 |BaseDire|ctory = |
|000045e0| 2a 64 69 72 65 63 74 6f | 72 79 3b 00 00 00 0f fd |*directo|ry;.....|
|000045f0| 00 28 00 17 c6 66 49 64 | 65 6e 74 69 66 69 65 72 |.(...fId|entifier|
|00004600| 20 3d 20 42 5f 45 52 52 | 4f 52 3b 00 00 00 10 08 | = B_ERR|OR;.....|
|00004610| 00 1b 00 14 c6 66 44 65 | 63 6f 64 65 72 20 3d 20 |.....fDe|coder = |
|00004620| 42 5f 45 52 52 4f 52 3b | 00 00 10 13 00 1b 00 14 |B_ERROR;|........|
|00004630| c6 66 45 6e 63 6f 64 65 | 72 20 3d 20 42 5f 45 52 |.fEncode|r = B_ER|
|00004640| 52 4f 52 3b 00 00 10 1e | 00 1b 00 0a c6 6e 65 78 |ROR;....|.....nex|
|00004650| 74 20 3d 20 30 3b 00 00 | 10 28 00 1b 00 3a c7 2f |t = 0;..|.(...:./|
|00004660| 2f 20 54 72 79 20 74 6f | 20 6c 6f 61 64 20 69 6e |/ Try to| load in|
|00004670| 20 74 68 65 20 69 64 65 | 6e 74 69 66 69 65 72 20 | the ide|ntifier |
|00004680| 6d 6f 64 75 6c 65 20 62 | 61 73 65 64 20 6f 6e 20 |module b|ased on |
|00004690| 74 68 65 20 6e 61 6d 65 | 00 00 10 33 00 1b 00 23 |the name|...3...#|
|000046a0| c6 66 49 64 65 6e 74 69 | 66 69 65 72 20 3d 20 6c |.fIdenti|fier = l|
|000046b0| 6f 61 64 5f 61 64 64 5f | 6f 6e 28 61 5f 66 69 6c |oad_add_|on(a_fil|
|000046c0| 65 29 3b 00 00 00 10 49 | 00 1b 00 1c c6 69 66 20 |e);....I|.....if |
|000046d0| 28 42 5f 45 52 52 4f 52 | 20 21 3d 20 66 49 64 65 |(B_ERROR| != fIde|
|000046e0| 6e 74 69 66 69 65 72 29 | 00 00 10 54 00 1b 00 02 |ntifier)|...T....|
|000046f0| c6 7b 00 00 10 5f 00 28 | 00 18 c6 66 44 65 63 6f |.{..._.(|...fDeco|
|00004700| 64 65 72 20 3d 20 66 49 | 64 65 6e 74 69 66 69 65 |der = fI|dentifie|
|00004710| 72 3b 00 00 10 6a 00 28 | 00 18 c6 66 45 6e 63 6f |r;...j.(|...fEnco|
|00004720| 64 65 72 20 3d 20 66 49 | 64 65 6e 74 69 66 69 65 |der = fI|dentifie|
|00004730| 72 3b 00 00 10 80 00 28 | 00 0c c6 6c 6f 6e 67 20 |r;.....(|...long |
|00004740| 65 72 72 6f 72 3b 00 00 | 10 95 00 28 00 44 c7 2f |error;..|...(.D./|
|00004750| 2f 20 57 65 20 68 61 76 | 65 20 73 75 63 63 65 73 |/ We hav|e succes|
|00004760| 73 66 75 6c 6c 79 20 6c | 6f 61 64 65 64 20 74 68 |sfully l|oaded th|
|00004770| 65 20 6d 6f 64 75 6c 65 | 2c 20 6e 6f 77 20 67 65 |e module|, now ge|
|00004780| 74 20 70 6f 69 6e 74 65 | 72 73 20 74 6f 20 73 6f |t pointe|rs to so|
|00004790| 6d 65 00 00 10 9f 00 28 | 00 21 c7 2f 2f 20 66 75 |me.....(|.!.// fu|
|000047a0| 6e 63 74 69 6f 6e 73 20 | 77 65 20 65 78 70 65 63 |nctions |we expec|
|000047b0| 74 20 74 6f 20 65 78 69 | 73 74 2e 00 00 00 10 aa |t to exi|st......|
|000047c0| 00 28 00 26 c6 65 72 72 | 6f 72 20 3d 20 67 65 74 |.(.&.err|or = get|
|000047d0| 5f 69 6d 61 67 65 5f 73 | 79 6d 62 6f 6c 28 66 49 |_image_s|ymbol(fI|
|000047e0| 64 65 6e 74 69 66 69 65 | 72 2c 00 00 10 b5 00 36 |dentifie|r,.....6|
|000047f0| 00 2d c6 ff d2 72 72 61 | 73 61 64 64 6f 6e 5f 49 |.-...rra|saddon_I|
|00004800| 44 4e 61 6d 65 5f 5f 46 | 76 ff d3 2c 20 32 2c 20 |DName__F|v.., 2, |
|00004810| 26 61 64 64 6f 6e 5f 49 | 44 4e 61 6d 65 29 3b 00 |&addon_I|DName);.|
|00004820| 00 00 10 c0 00 28 00 26 | c6 65 72 72 6f 72 20 3d |.....(.&|.error =|
|00004830| 20 67 65 74 5f 69 6d 61 | 67 65 5f 73 79 6d 62 6f | get_ima|ge_symbo|
|00004840| 6c 28 66 49 64 65 6e 74 | 69 66 69 65 72 2c 00 00 |l(fIdent|ifier,..|
|00004850| 10 cb 00 36 00 31 c6 ff | d2 72 72 61 73 61 64 64 |...6.1..|.rrasadd|
|00004860| 6f 6e 5f 49 44 41 75 74 | 68 6f 72 5f 5f 46 76 ff |on_IDAut|hor__Fv.|
|00004870| d3 2c 20 32 2c 20 26 61 | 64 64 6f 6e 5f 49 44 41 |., 2, &a|ddon_IDA|
|00004880| 75 74 68 6f 72 29 3b 00 | 00 00 10 d6 00 28 00 26 |uthor);.|.....(.&|
|00004890| c6 65 72 72 6f 72 20 3d | 20 67 65 74 5f 69 6d 61 |.error =| get_ima|
|000048a0| 67 65 5f 73 79 6d 62 6f | 6c 28 66 49 64 65 6e 74 |ge_symbo|l(fIdent|
|000048b0| 69 66 69 65 72 2c 00 00 | 10 e1 00 36 00 31 c6 ff |ifier,..|...6.1..|
|000048c0| d2 72 72 61 73 61 64 64 | 6f 6e 5f 49 44 4e 6f 74 |.rrasadd|on_IDNot|
|000048d0| 69 63 65 5f 5f 46 76 ff | d3 2c 20 32 2c 20 26 61 |ice__Fv.|., 2, &a|
|000048e0| 64 64 6f 6e 5f 49 44 4e | 6f 74 69 63 65 29 3b 00 |ddon_IDN|otice);.|
|000048f0| 00 00 10 ec 00 28 00 26 | c6 65 72 72 6f 72 20 3d |.....(.&|.error =|
|00004900| 20 67 65 74 5f 69 6d 61 | 67 65 5f 73 79 6d 62 6f | get_ima|ge_symbo|
|00004910| 6c 28 66 49 64 65 6e 74 | 69 66 69 65 72 2c 00 00 |l(fIdent|ifier,..|
|00004920| 10 f7 00 36 00 33 c6 ff | d2 72 72 61 73 61 64 64 |...6.3..|.rrasadd|
|00004930| 6f 6e 5f 49 44 45 6e 63 | 6f 64 65 72 5f 5f 46 76 |on_IDEnc|oder__Fv|
|00004940| ff d3 2c 20 32 2c 20 26 | 61 64 64 6f 6e 5f 49 44 |.., 2, &|addon_ID|
|00004950| 45 6e 63 6f 64 65 72 29 | 3b 00 00 00 11 02 00 28 |Encoder)|;......(|
|00004960| 00 26 c6 65 72 72 6f 72 | 20 3d 20 67 65 74 5f 69 |.&.error| = get_i|
|00004970| 6d 61 67 65 5f 73 79 6d | 62 6f 6c 28 66 49 64 65 |mage_sym|bol(fIde|
|00004980| 6e 74 69 66 69 65 72 2c | 00 00 11 0d 00 36 00 33 |ntifier,|.....6.3|
|00004990| c6 ff d2 72 72 61 73 61 | 64 64 6f 6e 5f 49 44 44 |...rrasa|ddon_IDD|
|000049a0| 65 63 6f 64 65 72 5f 5f | 46 76 ff d3 2c 20 32 2c |ecoder__|Fv.., 2,|
|000049b0| 20 26 61 64 64 6f 6e 5f | 49 44 44 65 63 6f 64 65 | &addon_|IDDecode|
|000049c0| 72 29 3b 00 00 00 11 18 | 00 28 00 26 c6 65 72 72 |r);.....|.(.&.err|
|000049d0| 6f 72 20 3d 20 67 65 74 | 5f 69 6d 61 67 65 5f 73 |or = get|_image_s|
|000049e0| 79 6d 62 6f 6c 28 66 49 | 64 65 6e 74 69 66 69 65 |ymbol(fI|dentifie|
|000049f0| 72 2c 00 00 11 23 00 36 | 00 30 c6 ff d2 43 61 6e |r,...#.6|.0...Can|
|00004a00| 43 72 65 61 74 65 49 6d | 61 67 65 5f 5f 46 50 76 |CreateIm|age__FPv|
|00004a10| 6c ff d3 2c 20 32 2c 20 | 26 61 64 64 6f 6e 5f 43 |l.., 2, |&addon_C|
|00004a20| 61 6e 43 72 65 61 74 65 | 29 3b 00 00 11 2e 00 28 |anCreate|);.....(|
|00004a30| 00 26 c6 65 72 72 6f 72 | 20 3d 20 67 65 74 5f 69 |.&.error| = get_i|
|00004a40| 6d 61 67 65 5f 73 79 6d | 62 6f 6c 28 66 49 64 65 |mage_sym|bol(fIde|
|00004a50| 6e 74 69 66 69 65 72 2c | 00 00 11 39 00 36 00 33 |ntifier,|...9.6.3|
|00004a60| c6 ff d2 43 72 65 61 74 | 65 49 6d 61 67 65 5f 5f |...Creat|eImage__|
|00004a70| 46 50 35 42 46 69 6c 65 | ff d3 2c 20 32 2c 20 26 |FP5BFile|.., 2, &|
|00004a80| 61 64 64 6f 6e 5f 43 72 | 65 61 74 65 49 6d 61 67 |addon_Cr|eateImag|
|00004a90| 65 29 3b 00 00 00 11 44 | 00 1b 00 02 c6 7d 00 00 |e);....D|.....}..|
|00004aa0| 11 4f 00 12 00 02 c6 7d | 00 00 11 60 00 24 00 4b |.O.....}|...`.$.K|
|00004ab0| c2 41 6e 20 61 64 64 2d | 6f 6e 20 69 73 20 6c 6f |.An add-|on is lo|
|00004ac0| 61 64 65 64 20 69 6e 74 | 6f 20 74 68 65 20 73 79 |aded int|o the sy|
|00004ad0| 73 74 65 6d 20 75 73 69 | 6e 67 20 74 68 65 20 6c |stem usi|ng the l|
|00004ae0| 6f 61 64 5f 61 64 64 5f | 6f 6e 28 29 20 66 75 6e |oad_add_|on() fun|
|00004af0| 63 74 69 6f 6e 2e 20 54 | 68 69 73 00 00 00 11 6c |ction. T|his....l|
|00004b00| 00 09 00 5a c2 72 65 74 | 75 72 6e 73 20 61 20 76 |...Z.ret|urns a v|
|00004b10| 61 6c 75 65 20 74 68 61 | 74 20 69 64 65 6e 74 69 |alue tha|t identi|
|00004b20| 66 69 65 73 20 74 68 65 | 20 6d 6f 64 75 6c 65 20 |fies the| module |
|00004b30| 74 68 61 74 20 77 61 73 | 20 6a 75 73 74 20 6c 6f |that was| just lo|
|00004b40| 61 64 65 64 2e 20 4f 6e | 63 65 20 61 20 6d 6f 64 |aded. On|ce a mod|
|00004b50| 75 6c 65 20 69 73 20 6c | 6f 61 64 65 64 2c 00 00 |ule is l|oaded,..|
|00004b60| 11 78 00 09 00 50 c2 79 | 6f 75 20 63 61 6e 20 70 |.x...P.y|ou can p|
|00004b70| 72 6f 63 65 65 64 20 74 | 6f 20 70 6f 6b 65 20 61 |roceed t|o poke a|
|00004b80| 72 6f 75 6e 64 20 74 6f | 20 67 65 74 20 73 79 6d |round to| get sym|
|00004b90| 62 6f 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |bol info|rmation |
|00004ba0| 61 6e 64 20 66 75 6e 63 | 74 69 6f 6e 20 70 6f 69 |and func|tion poi|
|00004bb0| 6e 74 65 72 73 2e 00 00 | 11 89 00 24 00 4f c2 54 |nters...|...$.O.T|
|00004bc0| 68 65 20 67 65 74 5f 69 | 6d 61 67 65 5f 73 79 6d |he get_i|mage_sym|
|00004bd0| 62 6f 6c 28 29 20 66 75 | 6e 63 74 69 6f 6e 73 20 |bol() fu|nctions |
|00004be0| 61 73 73 69 67 6e 20 74 | 68 65 20 70 6f 69 6e 74 |assign t|he point|
|00004bf0| 65 72 20 74 6f 20 74 68 | 65 20 64 65 73 69 72 65 |er to th|e desire|
|00004c00| 64 20 66 75 6e 63 74 69 | 6f 6e 20 6f 72 00 00 00 |d functi|on or...|
|00004c10| 11 95 00 09 00 55 c2 73 | 79 6d 62 6f 6c 20 74 6f |.....U.s|ymbol to|
|00004c20| 20 74 68 65 20 67 69 76 | 65 6e 20 61 72 67 75 6d | the giv|en argum|
|00004c30| 65 6e 74 2e 20 54 68 65 | 72 65 20 61 72 65 20 73 |ent. The|re are s|
|00004c40| 65 76 65 72 61 6c 20 66 | 75 6e 63 74 69 6f 6e 73 |everal f|unctions|
|00004c50| 20 69 6e 20 74 68 65 20 | 61 64 64 2d 6f 6e 20 6d | in the |add-on m|
|00004c60| 6f 64 75 6c 65 2e 20 46 | 69 76 65 00 00 00 11 a1 |odule. F|ive.....|
|00004c70| 00 09 00 54 c2 6f 66 20 | 74 68 65 6d 20 64 65 61 |...T.of |them dea|
|00004c80| 6c 20 77 69 74 68 20 69 | 64 65 6e 74 69 66 79 69 |l with i|dentifyi|
|00004c90| 6e 67 20 74 68 65 20 6d | 6f 64 75 6c 65 20 61 6e |ng the m|odule an|
|00004ca0| 64 20 72 65 6c 61 74 65 | 64 20 6d 6f 64 75 6c 65 |d relate|d module|
|00004cb0| 73 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |s. For e|xample, |
|00004cc0| 77 69 74 68 20 74 68 65 | 00 00 11 ad 00 09 00 53 |with the|.......S|
|00004cd0| c2 47 49 46 20 61 64 64 | 2d 6f 6e 2c 20 74 68 65 |.GIF add|-on, the|
|00004ce0| 20 66 75 6e 63 74 69 6f | 6e 73 20 72 65 74 75 72 | functio|ns retur|
|00004cf0| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 72 65 |n inform|ation re|
|00004d00| 6c 65 76 61 6e 74 20 74 | 6f 20 65 6e 63 6f 64 69 |levant t|o encodi|
|00004d10| 6e 67 20 61 6e 64 20 64 | 65 63 6f 64 69 6e 67 20 |ng and d|ecoding |
|00004d20| 47 49 46 00 00 00 11 b9 | 00 09 00 54 c2 69 6d 61 |GIF.....|...T.ima|
|00004d30| 67 65 73 2e 20 54 68 6f | 73 65 20 66 75 6e 6e 79 |ges. Tho|se funny|
|00004d40| 20 66 75 6e 63 74 69 6f | 6e 20 6e 61 6d 65 73 20 | functio|n names |
|00004d50| 63 6f 6d 65 20 66 72 6f | 6d 20 74 68 65 20 66 61 |come fro|m the fa|
|00004d60| 63 74 20 74 68 61 74 20 | 74 68 65 20 63 6f 6d 70 |ct that |the comp|
|00004d70| 69 6c 65 72 20 6d 61 6e | 67 6c 65 73 20 74 68 65 |iler man|gles the|
|00004d80| 00 00 11 c5 00 09 00 53 | c2 6e 61 6d 65 73 20 62 |.......S|.names b|
|00004d90| 65 66 6f 72 65 20 73 74 | 69 63 6b 69 6e 67 20 74 |efore st|icking t|
|00004da0| 68 65 6d 20 69 6e 20 74 | 68 65 20 6c 69 62 72 61 |hem in t|he libra|
|00004db0| 72 79 2e 20 57 65 20 6d | 75 73 74 20 61 73 6b 20 |ry. We m|ust ask |
|00004dc0| 66 6f 72 20 74 68 65 20 | 73 79 6d 62 6f 6c 73 20 |for the |symbols |
|00004dd0| 75 73 69 6e 67 20 74 68 | 65 69 72 00 00 00 11 d1 |using th|eir.....|
|00004de0| 00 09 00 55 c2 6d 61 6e | 67 6c 65 64 20 6e 61 6d |...U.man|gled nam|
|00004df0| 65 73 2e 20 54 68 65 72 | 65 20 69 73 20 61 20 73 |es. Ther|e is a s|
|00004e00| 74 61 6e 64 61 72 64 20 | 6d 65 63 68 61 6e 69 73 |tandard |mechanis|
|00004e10| 6d 20 74 68 61 74 20 65 | 6e 61 62 6c 65 73 20 75 |m that e|nables u|
|00004e20| 73 20 74 6f 20 66 69 6e | 64 20 6f 75 74 20 74 68 |s to fin|d out th|
|00004e30| 65 20 6d 61 6e 67 6c 65 | 64 00 00 00 11 dd 00 09 |e mangle|d.......|
|00004e40| 00 57 c2 6e 61 6d 65 73 | 20 6f 66 20 61 6c 6c 20 |.W.names| of all |
|00004e50| 6f 75 72 20 73 79 6d 62 | 6f 6c 73 2c 20 73 6f 20 |our symb|ols, so |
|00004e60| 77 65 20 64 6f 6e ff d5 | 74 20 68 61 76 65 20 74 |we don..|t have t|
|00004e70| 6f 20 71 75 65 73 74 69 | 6f 6e 20 77 68 65 74 68 |o questi|on wheth|
|00004e80| 65 72 20 77 65 ff d5 72 | 65 20 64 6f 69 6e 67 20 |er we..r|e doing |
|00004e90| 69 74 20 72 69 67 68 74 | 2e 00 00 00 11 ee 00 24 |it right|.......$|
|00004ea0| 00 48 c2 54 68 65 20 47 | 66 78 43 6f 64 65 63 20 |.H.The G|fxCodec |
|00004eb0| 61 63 74 73 20 61 73 20 | 61 20 77 72 61 70 70 65 |acts as |a wrappe|
|00004ec0| 72 20 66 6f 72 20 6d 61 | 6e 79 20 63 61 6c 6c 73 |r for ma|ny calls|
|00004ed0| 20 69 6e 20 74 68 65 20 | 61 64 64 2d 6f 6e 20 6d | in the |add-on m|
|00004ee0| 6f 64 75 6c 65 2e 20 54 | 68 65 00 00 11 fa 00 09 |odule. T|he......|
|00004ef0| 00 56 c2 43 61 6e 43 72 | 65 61 74 65 49 6d 61 67 |.V.CanCr|eateImag|
|00004f00| 65 28 29 20 6d 65 74 68 | 6f 64 20 75 74 69 6c 69 |e() meth|od utili|
|00004f10| 7a 65 73 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |zes the |function|
|00004f20| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00004f30| 61 64 64 6f 6e 5f 43 61 | 6e 43 72 65 61 74 65 20 |addon_Ca|nCreate |
|00004f40| 66 75 6e 63 74 69 6f 6e | 00 00 12 06 00 09 00 55 |function|.......U|
|00004f50| c2 74 68 61 74 20 68 61 | 73 20 62 65 65 6e 20 6c |.that ha|s been l|
|00004f60| 6f 61 64 65 64 20 66 72 | 6f 6d 20 74 68 65 20 6d |oaded fr|om the m|
|00004f70| 6f 64 75 6c 65 2e 20 49 | 74 20 74 61 6b 65 73 20 |odule. I|t takes |
|00004f80| 63 61 72 65 20 6f 66 20 | 72 65 61 64 69 6e 67 20 |care of |reading |
|00004f90| 61 20 62 69 74 20 6f 66 | 20 74 68 65 20 66 69 6c |a bit of| the fil|
|00004fa0| 65 20 61 6e 64 00 00 00 | 12 12 00 09 00 36 c2 70 |e and...|.....6.p|
|00004fb0| 61 73 73 69 6e 67 20 74 | 68 69 73 20 64 61 74 61 |assing t|his data|
|00004fc0| 20 6f 6e 74 6f 20 74 68 | 65 20 6d 6f 64 75 6c 65 | onto th|e module|
|00004fd0| 20 66 6f 72 20 69 64 65 | 6e 74 69 66 69 63 61 74 | for ide|ntificat|
|00004fe0| 69 6f 6e 2e 00 00 12 28 | 00 12 00 06 c6 66 6c 6f |ion....(|.....flo|
|00004ff0| 61 74 00 00 12 33 00 12 | 00 26 c6 47 66 78 43 6f |at...3..|.&.GfxCo|
|00005000| 64 65 63 3a 3a 43 61 6e | 43 72 65 61 74 65 49 6d |dec::Can|CreateIm|
|00005010| 61 67 65 28 42 46 69 6c | 65 20 2a 66 69 6c 65 29 |age(BFil|e *file)|
|00005020| 00 00 12 3e 00 12 00 02 | c6 7b 00 00 12 48 00 1b |...>....|.{...H..|
|00005030| 00 25 c7 2f 2f 20 45 61 | 72 6c 79 20 65 78 69 74 |.%.// Ea|rly exit|
|00005040| 73 20 66 6f 72 20 6c 61 | 63 6b 20 6f 66 20 72 65 |s for la|ck of re|
|00005050| 73 6f 75 72 63 65 73 00 | 00 00 12 53 00 1b 00 0b |sources.|...S....|
|00005060| c6 69 66 20 28 21 66 69 | 6c 65 29 00 00 00 12 5e |.if (!fi|le)....^|
|00005070| 00 28 00 0a c6 72 65 74 | 75 72 6e 20 30 3b 00 00 |.(...ret|urn 0;..|
|00005080| 12 74 00 1b 00 16 c6 69 | 66 20 28 21 61 64 64 6f |.t.....i|f (!addo|
|00005090| 6e 5f 43 61 6e 43 72 65 | 61 74 65 29 00 00 12 7f |n_CanCre|ate)....|
|000050a0| 00 28 00 0c c6 72 65 74 | 75 72 6e 20 30 2e 30 3b |.(...ret|urn 0.0;|
|000050b0| 00 00 12 95 00 1b 00 10 | c6 63 68 61 72 20 64 61 |........|.char da|
|000050c0| 74 61 5b 31 32 38 5d 3b | 00 00 12 a0 00 1b 00 14 |ta[128];|........|
|000050d0| c6 6c 6f 6e 67 20 62 75 | 66 66 53 69 7a 65 20 3d |.long bu|ffSize =|
|000050e0| 31 32 38 3b 00 00 12 ab | 00 1b 00 12 c6 6c 6f 6e |128;....|.....lon|
|000050f0| 67 20 64 61 74 61 4c 65 | 6e 3d 31 32 38 3b 00 00 |g dataLe|n=128;..|
|00005100| 12 b6 00 1b 00 19 c6 66 | 69 6c 65 2d 3e 4f 70 65 |.......f|ile->Ope|
|00005110| 6e 28 42 5f 52 45 41 44 | 5f 4f 4e 4c 59 29 3b 00 |n(B_READ|_ONLY);.|
|00005120| 00 00 12 c1 00 1b 00 1a | c6 66 69 6c 65 2d 3e 53 |........|.file->S|
|00005130| 65 65 6b 28 30 2c 42 5f | 53 45 45 4b 5f 54 4f 50 |eek(0,B_|SEEK_TOP|
|00005140| 29 3b 00 00 12 cc 00 1b | 00 26 c6 64 61 74 61 4c |);......|.&.dataL|
|00005150| 65 6e 20 3d 20 66 69 6c | 65 2d 3e 52 65 61 64 28 |en = fil|e->Read(|
|00005160| 64 61 74 61 2c 20 62 75 | 66 66 53 69 7a 65 29 3b |data, bu|ffSize);|
|00005170| 00 00 12 e2 00 1b 00 34 | c6 66 6c 6f 61 74 20 63 |.......4|.float c|
|00005180| 6f 6e 66 69 64 65 6e 63 | 65 20 3d 20 87 61 64 64 |onfidenc|e = .add|
|00005190| 6f 6e 5f 43 61 6e 43 72 | 65 61 74 65 28 64 61 74 |on_CanCr|eate(dat|
|000051a0| 61 2c 20 64 61 74 61 4c | 65 6e 29 3b 00 00 12 ed |a, dataL|en);....|
|000051b0| 00 28 00 13 c6 72 65 74 | 75 72 6e 20 63 6f 6e 66 |.(...ret|urn conf|
|000051c0| 69 64 65 6e 63 65 3b 00 | 00 00 12 f8 00 12 00 02 |idence;.|........|
|000051d0| c6 7d 00 00 13 14 00 24 | 00 50 c2 43 72 65 61 74 |.}.....$|.P.Creat|
|000051e0| 65 49 6d 61 67 65 28 29 | 20 62 65 68 61 76 65 73 |eImage()| behaves|
|000051f0| 20 73 69 6d 69 6c 61 72 | 6c 79 2e 20 49 74 20 75 | similar|ly. It u|
|00005200| 74 69 6c 69 7a 65 73 20 | 74 68 65 20 64 79 6e 61 |tilizes |the dyna|
|00005210| 6d 69 63 61 6c 6c 79 20 | 6c 6f 61 64 65 64 20 66 |mically |loaded f|
|00005220| 75 6e 63 74 69 6f 6e 20 | 74 6f 00 00 13 20 00 09 |unction |to... ..|
|00005230| 00 51 c2 63 72 65 61 74 | 65 20 61 6e 20 69 6d 61 |.Q.creat|e an ima|
|00005240| 67 65 20 66 72 6f 6d 20 | 74 68 65 20 66 69 6c 65 |ge from |the file|
|00005250| 2e 20 46 6f 72 20 73 69 | 6d 70 6c 69 63 69 74 79 |. For si|mplicity|
|00005260| 2c 20 77 65 20 61 73 73 | 75 6d 65 20 74 68 61 74 |, we ass|ume that|
|00005270| 20 74 68 65 20 69 6d 61 | 67 65 20 64 65 63 6f 64 | the ima|ge decod|
|00005280| 69 6e 67 00 00 00 13 2c | 00 09 00 31 c2 6d 6f 64 |ing....,|...1.mod|
|00005290| 75 6c 65 20 69 73 20 74 | 68 65 20 73 61 6d 65 20 |ule is t|he same |
|000052a0| 61 73 20 74 68 65 20 69 | 64 65 6e 74 69 66 69 63 |as the i|dentific|
|000052b0| 61 74 69 6f 6e 20 6d 6f | 64 75 6c 65 2e 00 00 00 |ation mo|dule....|
|000052c0| 13 42 00 12 00 0b c6 47 | 66 78 49 6d 61 67 65 20 |.B.....G|fxImage |
|000052d0| 2a 00 00 00 13 4d 00 12 | 00 23 c6 47 66 78 43 6f |*....M..|.#.GfxCo|
|000052e0| 64 65 63 3a 3a 43 72 65 | 61 74 65 49 6d 61 67 65 |dec::Cre|ateImage|
|000052f0| 28 42 46 69 6c 65 20 2a | 66 69 6c 65 29 00 00 00 |(BFile *|file)...|
|00005300| 13 58 00 12 00 02 c6 7b | 00 00 13 63 00 1b 00 18 |.X.....{|...c....|
|00005310| c6 47 66 78 49 6d 61 67 | 65 20 2a 6e 65 77 49 6d |.GfxImag|e *newIm|
|00005320| 61 67 65 20 3d 20 30 3b | 00 00 13 78 00 1b 00 29 |age = 0;|...x...)|
|00005330| c7 2f 2f 20 45 61 72 6c | 79 20 72 65 74 75 72 6e |.// Earl|y return|
|00005340| 20 64 75 65 20 74 6f 20 | 6c 61 63 6b 20 6f 66 20 | due to |lack of |
|00005350| 72 65 73 6f 75 72 63 65 | 73 00 00 00 13 83 00 1b |resource|s.......|
|00005360| 00 21 c6 69 66 20 28 21 | 66 69 6c 65 20 7c 7c 20 |.!.if (!|file || |
|00005370| 21 61 64 64 6f 6e 5f 43 | 72 65 61 74 65 49 6d 61 |!addon_C|reateIma|
|00005380| 67 65 29 00 00 00 13 8e | 00 1b 00 02 c6 7b 00 00 |ge).....|.....{..|
|00005390| 13 99 00 28 00 37 c6 70 | 72 69 6e 74 66 28 ff d2 |...(.7.p|rintf(..|
|000053a0| 47 66 78 43 6f 64 65 63 | 3a 3a 43 72 65 61 74 65 |GfxCodec|::Create|
|000053b0| 49 6d 61 67 65 28 29 20 | 2d 20 6c 65 61 76 69 6e |Image() |- leavin|
|000053c0| 67 20 65 61 72 6c 79 5c | 6e ff d3 29 3b 00 00 00 |g early\|n..);...|
|000053d0| 13 a4 00 28 00 0a c6 72 | 65 74 75 72 6e 20 30 3b |...(...r|eturn 0;|
|000053e0| 00 00 13 af 00 1b 00 02 | c6 7d 00 00 13 c4 00 1b |........|.}......|
|000053f0| 00 4d c7 2f 2f 20 4e 6f | 77 20 74 68 61 74 20 77 |.M.// No|w that w|
|00005400| 65 20 68 61 76 65 20 74 | 68 65 20 64 65 63 6f 64 |e have t|he decod|
|00005410| 65 72 20 61 64 64 2d 6f | 6e 2c 20 77 65 20 73 68 |er add-o|n, we sh|
|00005420| 6f 75 6c 64 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |ould be |able to |
|00005430| 63 61 6c 6c 20 74 68 65 | 20 64 65 63 6f 64 65 00 |call the| decode.|
|00005440| 00 00 13 ce 00 1b 00 22 | c7 2f 2f 20 66 75 6e 63 |......."|.// func|
|00005450| 74 69 6f 6e 20 61 6e 64 | 20 67 65 74 20 61 6e 20 |tion and| get an |
|00005460| 69 6d 61 67 65 20 6f 75 | 74 2e 00 00 13 d9 00 1b |image ou|t.......|
|00005470| 00 24 c6 6e 65 77 49 6d | 61 67 65 20 3d 20 61 64 |.$.newIm|age = ad|
|00005480| 64 6f 6e 5f 43 72 65 61 | 74 65 49 6d 61 67 65 28 |don_Crea|teImage(|
|00005490| 66 69 6c 65 29 3b 00 00 | 13 ef 00 1b 00 11 c6 72 |file);..|.......r|
|000054a0| 65 74 75 72 6e 20 6e 65 | 77 49 6d 61 67 65 3b 00 |eturn ne|wImage;.|
|000054b0| 00 00 13 fa 00 12 00 02 | c6 7d 00 00 14 16 00 24 |........|.}.....$|
|000054c0| 00 52 c2 47 69 76 65 6e | 20 74 68 65 20 47 66 78 |.R.Given| the Gfx|
|000054d0| 43 6f 64 65 63 20 63 6c | 61 73 73 2c 20 77 65 20 |Codec cl|ass, we |
|000054e0| 63 61 6e 20 6e 6f 77 20 | 77 72 69 74 65 20 63 6f |can now |write co|
|000054f0| 64 65 20 74 68 61 74 20 | 77 69 6c 6c 20 61 6c 6c |de that |will all|
|00005500| 6f 77 20 75 73 20 74 6f | 20 64 79 6e 61 6d 69 63 |ow us to| dynamic|
|00005510| 61 6c 6c 79 00 00 14 22 | 00 09 00 57 c2 6c 6f 61 |ally..."|...W.loa|
|00005520| 64 20 61 6e 20 61 64 64 | 2d 6f 6e 20 6d 6f 64 75 |d an add|-on modu|
|00005530| 6c 65 20 74 6f 20 64 65 | 63 6f 64 65 20 69 6d 61 |le to de|code ima|
|00005540| 67 65 73 2e 20 54 68 65 | 20 74 61 73 6b 20 69 73 |ges. The| task is|
|00005550| 20 73 74 69 6c 6c 20 61 | 20 62 69 74 20 63 75 6d | still a| bit cum|
|00005560| 62 65 72 73 6f 6d 65 2c | 20 62 75 74 20 77 65 20 |bersome,| but we |
|00005570| 61 72 65 00 00 00 14 2e | 00 09 00 59 c2 62 75 69 |are.....|...Y.bui|
|00005580| 6c 64 69 6e 67 20 70 69 | 65 63 65 20 62 79 20 70 |lding pi|ece by p|
|00005590| 69 65 63 65 20 74 6f 20 | 67 65 74 20 74 6f 20 6f |iece to |get to o|
|000055a0| 75 72 20 70 72 6f 6d 69 | 73 65 64 20 ff d2 6f 6e |ur promi|sed ..on|
|000055b0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 64 6f 65 73 20 |e functi|on does |
|000055c0| 69 74 20 61 6c 6c 2e ff | d3 20 4e 6f 77 20 77 65 |it all..|. Now we|
|000055d0| 20 6e 65 65 64 00 00 00 | 14 3a 00 09 00 11 c2 73 | need...|.:.....s|
|000055e0| 6f 6d 65 20 6d 61 6e 61 | 67 65 6d 65 6e 74 2e 00 |ome mana|gement..|
|000055f0| 00 00 14 50 00 12 00 1d | c6 42 44 69 72 65 63 74 |...P....|.BDirect|
|00005600| 6f 72 79 20 67 41 64 64 | 4f 6e 73 44 69 72 65 63 |ory gAdd|OnsDirec|
|00005610| 74 6f 72 79 3b 00 00 00 | 14 66 00 12 00 05 c6 76 |tory;...|.f.....v|
|00005620| 6f 69 64 00 00 00 14 71 | 00 12 00 24 c6 53 65 74 |oid....q|...$.Set|
|00005630| 41 64 64 4f 6e 73 44 69 | 72 65 63 74 6f 72 79 28 |AddOnsDi|rectory(|
|00005640| 72 65 63 6f 72 64 5f 72 | 65 66 20 61 52 65 66 29 |record_r|ef aRef)|
|00005650| 00 00 14 7c 00 12 00 02 | c6 7b 00 00 14 87 00 1b |...|....|.{......|
|00005660| 00 20 c6 63 68 61 72 20 | 6e 61 6d 65 5f 62 75 66 |. .char |name_buf|
|00005670| 5b 31 30 32 34 5d 20 3d | 20 7b ff d4 5c 30 ff d5 |[1024] =| {..\0..|
|00005680| 7d 3b 00 00 14 9d 00 1b | 00 1f c6 67 41 64 64 4f |};......|...gAddO|
|00005690| 6e 73 44 69 72 65 63 74 | 6f 72 79 2e 53 65 74 52 |nsDirect|ory.SetR|
|000056a0| 65 66 28 61 52 65 66 29 | 3b 00 00 00 14 a8 00 1b |ef(aRef)|;.......|
|000056b0| 00 24 c6 67 41 64 64 4f | 6e 73 44 69 72 65 63 74 |.$.gAddO|nsDirect|
|000056c0| 6f 72 79 2e 47 65 74 4e | 61 6d 65 28 6e 61 6d 65 |ory.GetN|ame(name|
|000056d0| 5f 62 75 66 29 3b 00 00 | 14 be 00 1b 00 10 c6 52 |_buf);..|.......R|
|000056e0| 65 6c 6f 61 64 43 6f 64 | 65 63 73 28 29 3b 00 00 |eloadCod|ecs();..|
|000056f0| 14 c9 00 12 00 02 c6 7d | 00 00 14 e5 00 24 00 4f |.......}|.....$.O|
|00005700| c2 46 69 72 73 74 20 6f | 66 20 61 6c 6c 2c 20 77 |.First o|f all, w|
|00005710| 65 20 6e 65 65 64 20 73 | 6f 6d 65 20 77 61 79 20 |e need s|ome way |
|00005720| 6f 66 20 74 65 6c 6c 69 | 6e 67 20 74 68 65 20 61 |of telli|ng the a|
|00005730| 64 64 2d 6f 6e 20 6d 61 | 6e 61 67 65 72 20 77 68 |dd-on ma|nager wh|
|00005740| 65 72 65 20 74 6f 20 6c | 6f 6f 6b 20 66 6f 72 00 |ere to l|ook for.|
|00005750| 00 00 14 f1 00 09 00 54 | c2 6d 6f 64 75 6c 65 73 |.......T|.modules|
|00005760| 2e 20 53 65 74 41 64 64 | 4f 6e 73 44 69 72 65 63 |. SetAdd|OnsDirec|
|00005770| 74 6f 72 79 28 29 20 70 | 65 72 66 6f 72 6d 73 20 |tory() p|erforms |
|00005780| 74 68 69 73 20 73 69 6d | 70 6c 65 20 74 61 73 6b |this sim|ple task|
|00005790| 2e 20 41 20 72 65 63 6f | 72 64 5f 72 65 66 20 69 |. A reco|rd_ref i|
|000057a0| 73 20 74 68 65 20 6c 6f | 77 65 73 74 00 00 14 fd |s the lo|west....|
|000057b0| 00 09 00 56 c2 6c 65 76 | 65 6c 20 72 65 70 72 65 |...V.lev|el repre|
|000057c0| 73 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 74 68 69 |sentatio|n of thi|
|000057d0| 6e 67 73 20 6c 69 6b 65 | 20 42 46 69 6c 65 73 20 |ngs like| BFiles |
|000057e0| 61 6e 64 20 42 44 69 72 | 65 63 74 6f 72 69 65 73 |and BDir|ectories|
|000057f0| 20 69 6e 20 74 68 65 20 | 42 65 4f 53 2e 20 41 20 | in the |BeOS. A |
|00005800| 72 65 63 6f 72 64 5f 72 | 65 66 00 00 15 09 00 09 |record_r|ef......|
|00005810| 00 58 c2 6d 69 67 68 74 | 20 62 65 20 70 61 73 73 |.X.might| be pass|
|00005820| 65 64 20 74 6f 20 79 6f | 75 20 77 68 65 6e 20 61 |ed to yo|u when a|
|00005830| 20 64 69 72 65 63 74 6f | 72 79 20 69 73 20 64 72 | directo|ry is dr|
|00005840| 6f 70 70 65 64 20 6f 6e | 74 6f 20 74 68 65 20 69 |opped on|to the i|
|00005850| 6e 74 65 72 66 61 63 65 | 2c 20 6f 72 20 79 6f 75 |nterface|, or you|
|00005860| 20 6d 69 67 68 74 20 67 | 65 74 00 00 15 15 00 09 | might g|et......|
|00005870| 00 55 c2 69 74 20 66 72 | 6f 6d 20 74 68 65 20 73 |.U.it fr|om the s|
|00005880| 74 61 72 74 75 70 20 64 | 69 72 65 63 74 6f 72 79 |tartup d|irectory|
|00005890| 20 6f 66 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | of the |applicat|
|000058a0| 69 6f 6e 2e 20 49 74 20 | 6d 61 79 20 65 76 65 6e |ion. It |may even|
|000058b0| 20 62 65 20 73 74 6f 72 | 65 64 20 73 6f 6d 65 77 | be stor|ed somew|
|000058c0| 68 65 72 65 20 69 6e 00 | 00 00 15 21 00 09 00 4e |here in.|...!...N|
|000058d0| c2 74 68 65 20 73 79 73 | 74 65 6d 20 64 61 74 61 |.the sys|tem data|
|000058e0| 62 61 73 65 2e 20 4e 6f | 20 6d 61 74 74 65 72 20 |base. No| matter |
|000058f0| 77 68 65 72 65 20 69 74 | 20 63 6f 6d 65 73 20 66 |where it| comes f|
|00005900| 72 6f 6d 2c 20 77 65 20 | 6a 75 73 74 20 6e 65 65 |rom, we |just nee|
|00005910| 64 20 74 6f 20 70 6f 69 | 6e 74 20 6f 75 72 00 00 |d to poi|nt our..|
|00005920| 15 2d 00 09 00 11 c2 64 | 69 72 65 63 74 6f 72 79 |.-.....d|irectory|
|00005930| 20 61 74 20 69 74 2e 00 | 00 00 15 43 00 12 00 05 | at it..|...C....|
|00005940| c6 76 6f 69 64 00 00 00 | 15 4e 00 12 00 0f c6 52 |.void...|.N.....R|
|00005950| 65 6c 6f 61 64 43 6f 64 | 65 63 73 28 29 00 00 00 |eloadCod|ecs()...|
|00005960| 15 59 00 12 00 02 c6 7b | 00 00 15 64 00 1b 00 10 |.Y.....{|...d....|
|00005970| c6 69 6d 61 67 65 5f 69 | 64 20 74 6d 70 49 44 3b |.image_i|d tmpID;|
|00005980| 00 00 15 6f 00 1b 00 14 | c6 47 66 78 43 6f 64 65 |...o....|.GfxCode|
|00005990| 63 20 2a 74 6d 70 43 6f | 64 65 63 3b 00 00 15 84 |c *tmpCo|dec;....|
|000059a0| 00 1b 00 2a c7 2f 2f 20 | 49 74 65 72 61 74 65 20 |...*.// |Iterate |
|000059b0| 74 68 72 6f 75 67 68 20 | 74 68 65 20 63 75 72 72 |through |the curr|
|000059c0| 65 6e 74 20 63 6f 64 65 | 63 20 6c 69 73 74 00 00 |ent code|c list..|
|000059d0| 15 8f 00 1b 00 13 c6 77 | 68 69 6c 65 20 28 67 43 |.......w|hile (gC|
|000059e0| 6f 64 65 63 4c 69 73 74 | 29 00 00 00 15 9a 00 1b |odecList|).......|
|000059f0| 00 02 c6 7b 00 00 15 a5 | 00 28 00 10 c6 6c 6f 6e |...{....|.(...lon|
|00005a00| 67 20 65 72 72 6f 72 20 | 3d 20 30 3b 00 00 15 bb |g error |= 0;....|
|00005a10| 00 28 00 1d c6 74 6d 70 | 43 6f 64 65 63 20 3d 20 |.(...tmp|Codec = |
|00005a20| 67 43 6f 64 65 63 4c 69 | 73 74 2d 3e 6e 65 78 74 |gCodecLi|st->next|
|00005a30| 3b 00 00 00 15 d1 00 28 | 00 13 c6 64 65 6c 65 74 |;......(|...delet|
|00005a40| 65 20 67 43 6f 64 65 63 | 4c 69 73 74 3b 00 00 00 |e gCodec|List;...|
|00005a50| 15 dc 00 28 00 17 c6 67 | 43 6f 64 65 63 4c 69 73 |...(...g|CodecLis|
|00005a60| 74 20 3d 20 74 6d 70 43 | 6f 64 65 63 3b 00 00 00 |t = tmpC|odec;...|
|00005a70| 15 e7 00 1b 00 02 c6 7d | 00 00 16 0e 00 24 00 51 |.......}|.....$.Q|
|00005a80| c2 57 65 20 6e 6f 77 20 | 77 61 6e 74 20 74 6f 20 |.We now |want to |
|00005a90| 63 6c 65 61 72 20 6f 75 | 74 20 74 68 65 20 63 75 |clear ou|t the cu|
|00005aa0| 72 72 65 6e 74 20 63 6f | 64 65 63 20 6c 69 73 74 |rrent co|dec list|
|00005ab0| 20 62 65 63 61 75 73 65 | 20 77 65 20 74 68 69 6e | because| we thin|
|00005ac0| 6b 20 69 74 20 69 73 20 | 6e 6f 20 6c 6f 6e 67 65 |k it is |no longe|
|00005ad0| 72 00 00 00 16 1a 00 09 | 00 57 c2 76 61 6c 69 64 |r.......|.W.valid|
|00005ae0| 2e 20 59 6f 75 20 63 6f | 75 6c 64 20 73 6b 69 70 |. You co|uld skip|
|00005af0| 20 74 68 69 73 20 73 74 | 65 70 20 61 6e 64 20 68 | this st|ep and h|
|00005b00| 6f 70 20 66 72 6f 6d 20 | 64 69 72 65 63 74 6f 72 |op from |director|
|00005b10| 79 20 74 6f 20 64 69 72 | 65 63 74 6f 72 79 20 6c |y to dir|ectory l|
|00005b20| 6f 61 64 69 6e 67 20 69 | 6e 20 61 73 20 6d 61 6e |oading i|n as man|
|00005b30| 79 00 00 00 16 26 00 09 | 00 58 c2 6d 6f 64 75 6c |y....&..|.X.modul|
|00005b40| 65 73 20 61 73 20 79 6f | 75 20 6c 69 6b 65 2e 20 |es as yo|u like. |
|00005b50| 41 20 67 6f 6f 64 20 65 | 78 74 65 6e 73 69 6f 6e |A good e|xtension|
|00005b60| 20 77 6f 75 6c 64 20 61 | 6c 73 6f 20 62 65 20 74 | would a|lso be t|
|00005b70| 6f 20 73 61 76 65 20 74 | 68 65 20 6c 69 73 74 20 |o save t|he list |
|00005b80| 70 65 72 73 69 73 74 65 | 6e 74 6c 79 20 73 6f 20 |persiste|ntly so |
|00005b90| 69 74 00 00 16 32 00 09 | 00 2d c2 77 6f 75 6c 64 |it...2..|.-.would|
|00005ba0| 20 62 65 20 6c 6f 61 64 | 65 64 20 61 75 74 6f 6d | be load|ed autom|
|00005bb0| 61 74 69 63 61 6c 6c 79 | 20 74 68 65 20 6e 65 78 |atically| the nex|
|00005bc0| 74 20 74 69 6d 65 2e 00 | 00 00 16 47 00 1b 00 49 |t time..|...G...I|
|00005bd0| c7 2f 2f 20 49 66 20 77 | 65 20 64 6f 6e ff d5 74 |.// If w|e don..t|
|00005be0| 20 68 61 76 65 20 61 6e | 20 61 64 64 2d 6f 6e 73 | have an| add-ons|
|00005bf0| 20 64 69 72 65 63 74 6f | 72 79 2c 20 74 68 65 6e | directo|ry, then|
|00005c00| 20 6a 75 73 74 20 72 65 | 74 75 72 6e 20 69 6d 6d | just re|turn imm|
|00005c10| 65 64 69 61 74 65 6c 79 | 2e 00 00 00 16 51 00 1b |ediately|.....Q..|
|00005c20| 00 2d c7 2f 2f 20 54 68 | 69 73 20 69 73 20 6f 6e |.-.// Th|is is on|
|00005c30| 65 20 77 61 79 20 6f 66 | 20 77 69 70 69 6e 67 20 |e way of| wiping |
|00005c40| 6f 75 74 20 74 68 65 20 | 61 64 64 2d 6f 6e 73 00 |out the |add-ons.|
|00005c50| 00 00 16 5c 00 1b 00 29 | c6 69 66 20 28 67 41 64 |...\...)|.if (gAd|
|00005c60| 64 4f 6e 73 44 69 72 65 | 63 74 6f 72 79 2e 45 72 |dOnsDire|ctory.Er|
|00005c70| 72 6f 72 28 29 20 3d 3d | 20 42 5f 45 52 52 4f 52 |ror() ==| B_ERROR|
|00005c80| 29 00 00 00 16 67 00 1b | 00 02 c6 7b 00 00 16 72 |)....g..|...{...r|
|00005c90| 00 28 00 3b c6 70 72 69 | 6e 74 66 28 ff d2 52 65 |.(.;.pri|ntf(..Re|
|00005ca0| 6c 6f 61 64 43 6f 64 65 | 63 73 20 2d 20 61 64 64 |loadCode|cs - add|
|00005cb0| 2d 6f 6e 73 20 64 69 72 | 65 63 74 6f 72 79 20 6e |-ons dir|ectory n|
|00005cc0| 6f 74 20 76 61 6c 69 64 | 2e 5c 6e ff d3 29 3b 00 |ot valid|.\n..);.|
|00005cd0| 00 00 16 7d 00 28 00 08 | c6 72 65 74 75 72 6e 3b |...}.(..|.return;|
|00005ce0| 00 00 16 88 00 1b 00 02 | c6 7d 00 00 16 9d 00 1b |........|.}......|
|00005cf0| 00 47 c7 2f 2f 20 4e 6f | 77 20 74 72 61 76 65 72 |.G.// No|w traver|
|00005d00| 73 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |se the c|urrent d|
|00005d10| 69 72 65 63 74 6f 72 79 | 20 6c 6f 6f 6b 69 6e 67 |irectory| looking|
|00005d20| 20 66 6f 72 20 6e 65 77 | 20 63 6f 64 65 63 73 20 | for new| codecs |
|00005d30| 74 6f 20 62 75 69 6c 64 | 2e 00 00 00 16 a8 00 1b |to build|........|
|00005d40| 00 0c c6 6c 6f 6e 67 20 | 69 6e 64 65 78 3b 00 00 |...long |index;..|
|00005d50| 16 b3 00 1b 00 0e c6 42 | 46 69 6c 65 20 61 5f 66 |.......B|File a_f|
|00005d60| 69 6c 65 3b 00 00 16 be | 00 1b 00 12 c6 42 44 69 |ile;....|.....BDi|
|00005d70| 72 65 63 74 6f 72 79 20 | 61 5f 64 69 72 3b 00 00 |rectory |a_dir;..|
|00005d80| 16 c9 00 1b 00 1c c6 6c | 6f 6e 67 20 66 69 6c 65 |.......l|ong file|
|00005d90| 5f 63 6f 75 6e 74 2c 20 | 64 69 72 5f 63 6f 75 6e |_count, |dir_coun|
|00005da0| 74 3b 00 00 16 d4 00 1b | 00 18 c6 72 65 63 6f 72 |t;......|...recor|
|00005db0| 64 5f 72 65 66 20 2a 72 | 65 66 5f 76 65 63 74 6f |d_ref *r|ef_vecto|
|00005dc0| 72 3b 00 00 16 df 00 1b | 00 23 c6 63 68 61 72 20 |r;......|.#.char |
|00005dd0| 6e 61 6d 65 5f 62 75 66 | 5b 42 5f 46 49 4c 45 5f |name_buf|[B_FILE_|
|00005de0| 4e 41 4d 45 5f 4c 45 4e | 47 54 48 5d 3b 00 00 00 |NAME_LEN|GTH];...|
|00005df0| 16 f5 00 1b 00 2c c6 66 | 69 6c 65 5f 63 6f 75 6e |.....,.f|ile_coun|
|00005e00| 74 20 3d 20 67 41 64 64 | 4f 6e 73 44 69 72 65 63 |t = gAdd|OnsDirec|
|00005e10| 74 6f 72 79 2e 43 6f 75 | 6e 74 46 69 6c 65 73 28 |tory.Cou|ntFiles(|
|00005e20| 29 3b 00 00 17 00 00 1b | 00 29 c6 72 65 66 5f 76 |);......|.).ref_v|
|00005e30| 65 63 74 6f 72 20 3d 20 | 6e 65 77 20 72 65 63 6f |ector = |new reco|
|00005e40| 72 64 5f 72 65 66 5b 66 | 69 6c 65 5f 63 6f 75 6e |rd_ref[f|ile_coun|
|00005e50| 74 5d 3b 00 00 00 17 1c | 00 24 00 50 c2 57 65 20 |t];.....|.$.P.We |
|00005e60| 67 65 74 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |get the |list of |
|00005e70| 72 65 63 6f 72 64 5f 72 | 65 66 73 20 74 68 61 74 |record_r|efs that|
|00005e80| 20 72 65 70 72 65 73 65 | 6e 74 20 61 6c 6c 20 6f | represe|nt all o|
|00005e90| 66 20 74 68 65 20 66 69 | 6c 65 73 20 69 6e 20 74 |f the fi|les in t|
|00005ea0| 68 65 20 73 70 65 63 69 | 66 69 65 64 00 00 17 28 |he speci|fied...(|
|00005eb0| 00 09 00 0b c2 64 69 72 | 65 63 74 6f 72 79 2e 00 |.....dir|ectory..|
|00005ec0| 00 00 17 3e 00 1b 00 24 | c6 67 41 64 64 4f 6e 73 |...>...$|.gAddOns|
|00005ed0| 44 69 72 65 63 74 6f 72 | 79 2e 47 65 74 4e 61 6d |Director|y.GetNam|
|00005ee0| 65 28 6e 61 6d 65 5f 62 | 75 66 29 3b 00 00 17 49 |e(name_b|uf);...I|
|00005ef0| 00 1b 00 36 c6 67 41 64 | 64 4f 6e 73 44 69 72 65 |...6.gAd|dOnsDire|
|00005f00| 63 74 6f 72 79 2e 47 65 | 74 46 69 6c 65 73 28 30 |ctory.Ge|tFiles(0|
|00005f10| 2c 20 66 69 6c 65 5f 63 | 6f 75 6e 74 2c 20 72 65 |, file_c|ount, re|
|00005f20| 66 5f 76 65 63 74 6f 72 | 29 3b 00 00 17 5f 00 1b |f_vector|);..._..|
|00005f30| 00 2d c6 66 6f 72 20 28 | 69 6e 64 65 78 20 3d 20 |.-.for (|index = |
|00005f40| 30 3b 20 69 6e 64 65 78 | 20 3c 20 66 69 6c 65 5f |0; index| < file_|
|00005f50| 63 6f 75 6e 74 3b 20 69 | 6e 64 65 78 2b 2b 29 00 |count; i|ndex++).|
|00005f60| 00 00 17 6a 00 1b 00 02 | c6 7b 00 00 17 75 00 28 |...j....|.{...u.(|
|00005f70| 00 18 c6 47 66 78 43 6f | 64 65 63 20 2a 6e 65 77 |...GfxCo|dec *new|
|00005f80| 43 6f 64 65 63 20 3d 20 | 30 3b 00 00 17 8a 00 28 |Codec = |0;.....(|
|00005f90| 00 53 c7 2f 2f 20 46 6f | 72 20 65 61 63 68 20 6f |.S.// Fo|r each o|
|00005fa0| 66 20 74 68 65 20 66 69 | 6c 65 73 20 66 6f 75 6e |f the fi|les foun|
|00005fb0| 64 20 69 6e 20 74 68 65 | 20 64 69 72 65 63 74 6f |d in the| directo|
|00005fc0| 72 79 2c 20 74 72 79 20 | 74 6f 20 6d 61 6b 65 20 |ry, try |to make |
|00005fd0| 61 20 47 66 78 43 6f 64 | 65 63 20 6f 75 74 20 6f |a GfxCod|ec out o|
|00005fe0| 66 20 69 74 2e 00 00 00 | 17 95 00 28 00 33 c6 69 |f it....|...(.3.i|
|00005ff0| 66 20 28 61 5f 66 69 6c | 65 2e 53 65 74 52 65 66 |f (a_fil|e.SetRef|
|00006000| 28 72 65 66 5f 76 65 63 | 74 6f 72 5b 69 6e 64 65 |(ref_vec|tor[inde|
|00006010| 78 5d 29 20 3c 20 42 5f | 4e 4f 5f 45 52 52 4f 52 |x]) < B_|NO_ERROR|
|00006020| 29 00 00 00 17 a0 00 36 | 00 0a c6 63 6f 6e 74 69 |)......6|...conti|
|00006030| 6e 75 65 3b 00 00 17 b6 | 00 28 00 35 c6 6e 65 77 |nue;....|.(.5.new|
|00006040| 43 6f 64 65 63 20 3d 20 | 6e 65 77 20 47 66 78 43 |Codec = |new GfxC|
|00006050| 6f 64 65 63 28 26 67 41 | 64 64 4f 6e 73 44 69 72 |odec(&gA|ddOnsDir|
|00006060| 65 63 74 6f 72 79 2c 20 | 26 61 5f 66 69 6c 65 29 |ectory, |&a_file)|
|00006070| 3b 00 00 00 17 c7 00 24 | 00 55 c2 49 66 20 74 68 |;......$|.U.If th|
|00006080| 65 20 63 6f 64 65 63 20 | 77 61 73 20 6e 6f 74 20 |e codec |was not |
|00006090| 63 6f 6e 73 74 72 75 63 | 74 65 64 20 66 6f 72 20 |construc|ted for |
|000060a0| 73 6f 6d 65 20 72 65 61 | 73 6f 6e 2c 20 6f 72 20 |some rea|son, or |
|000060b0| 69 74 20 69 73 20 69 6e | 76 61 6c 69 64 2c 20 74 |it is in|valid, t|
|000060c0| 68 65 6e 20 77 65 20 77 | 69 6c 6c 20 6e 6f 74 00 |hen we w|ill not.|
|000060d0| 00 00 17 d3 00 09 00 25 | c2 62 6f 74 68 65 72 20 |.......%|.bother |
|000060e0| 74 72 79 69 6e 67 20 74 | 6f 20 61 64 64 20 69 74 |trying t|o add it|
|000060f0| 20 74 6f 20 74 68 65 20 | 6c 69 73 74 2e 00 00 00 | to the |list....|
|00006100| 17 e9 00 28 00 27 c6 69 | 66 20 28 21 6e 65 77 43 |...(.'.i|f (!newC|
|00006110| 6f 64 65 63 20 7c 7c 20 | 21 6e 65 77 43 6f 64 65 |odec || |!newCode|
|00006120| 63 2d 3e 49 73 56 61 6c | 69 64 28 29 29 00 00 00 |c->IsVal|id())...|
|00006130| 17 f4 00 36 00 0a c6 63 | 6f 6e 74 69 6e 75 65 3b |...6...c|ontinue;|
|00006140| 00 00 18 10 00 24 00 4e | c2 4d 61 6b 65 20 74 68 |.....$.N|.Make th|
|00006150| 65 20 6e 65 77 20 63 6f | 64 65 63 20 74 68 65 20 |e new co|dec the |
|00006160| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 74 68 65 |beginnin|g of the|
|00006170| 20 6c 69 73 74 2c 20 69 | 66 20 74 68 65 20 6c 69 | list, i|f the li|
|00006180| 73 74 20 69 73 20 63 75 | 72 72 65 6e 74 6c 79 20 |st is cu|rrently |
|00006190| 62 6c 61 6e 6b 2e 00 00 | 18 1c 00 09 00 2a c2 4f |blank...|.....*.O|
|000061a0| 74 68 65 72 77 69 73 65 | 2c 20 61 64 64 20 69 74 |therwise|, add it|
|000061b0| 20 74 6f 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | to the |end of t|
|000061c0| 68 65 20 6c 69 73 74 2e | 00 00 18 32 00 1b 00 15 |he list.|...2....|
|000061d0| c6 69 66 20 28 30 20 3d | 3d 20 67 43 6f 64 65 63 |.if (0 =|= gCodec|
|000061e0| 4c 69 73 74 29 00 00 00 | 18 3d 00 36 00 17 c6 67 |List)...|.=.6...g|
|000061f0| 43 6f 64 65 63 4c 69 73 | 74 20 3d 20 6e 65 77 43 |CodecLis|t = newC|
|00006200| 6f 64 65 63 3b 00 00 00 | 18 48 00 28 00 05 c6 65 |odec;...|.H.(...e|
|00006210| 6c 73 65 00 00 00 18 53 | 00 36 00 1b c6 74 6d 70 |lse....S|.6...tmp|
|00006220| 43 6f 64 65 63 2d 3e 6e | 65 78 74 20 3d 20 6e 65 |Codec->n|ext = ne|
|00006230| 77 43 6f 64 65 63 3b 00 | 00 00 18 5e 00 28 00 15 |wCodec;.|...^.(..|
|00006240| c6 74 6d 70 43 6f 64 65 | 63 20 3d 20 6e 65 77 43 |.tmpCode|c = newC|
|00006250| 6f 64 65 63 3b 00 00 00 | 18 69 00 1b 00 02 c6 7d |odec;...|.i.....}|
|00006260| 00 00 18 7f 00 1b 00 16 | c6 64 65 6c 65 74 65 20 |........|.delete |
|00006270| 5b 5d 20 72 65 66 5f 76 | 65 63 74 6f 72 3b 00 00 |[] ref_v|ector;..|
|00006280| 18 8a 00 12 00 02 c6 7d | 00 00 18 a6 00 24 00 4d |.......}|.....$.M|
|00006290| c2 54 68 65 20 52 65 6c | 6f 61 64 43 6f 64 65 63 |.The Rel|oadCodec|
|000062a0| 73 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |s() func|tion is |
|000062b0| 74 68 65 20 77 6f 72 6b | 68 6f 72 73 65 20 6f 66 |the work|horse of|
|000062c0| 20 74 68 65 20 6d 61 6e | 61 67 65 6d 65 6e 74 20 | the man|agement |
|000062d0| 66 75 6e 63 74 69 6f 6e | 73 2e 20 49 74 00 00 00 |function|s. It...|
|000062e0| 18 b2 00 09 00 57 c2 77 | 69 6c 6c 20 73 63 61 6e |.....W.w|ill scan|
|000062f0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 73 70 65 | through| the spe|
|00006300| 63 69 66 69 65 64 20 6d | 6f 64 75 6c 65 73 20 64 |cified m|odules d|
|00006310| 69 72 65 63 74 6f 72 79 | 20 61 6e 64 20 63 72 65 |irectory| and cre|
|00006320| 61 74 65 20 61 20 6e 65 | 77 20 47 66 78 43 6f 64 |ate a ne|w GfxCod|
|00006330| 65 63 20 6f 62 6a 65 63 | 74 20 66 6f 72 00 00 00 |ec objec|t for...|
|00006340| 18 be 00 09 00 55 c2 65 | 61 63 68 20 6f 66 20 74 |.....U.e|ach of t|
|00006350| 68 65 20 69 64 65 6e 74 | 69 66 69 65 72 20 6d 6f |he ident|ifier mo|
|00006360| 64 75 6c 65 73 20 74 68 | 61 74 20 69 74 20 66 69 |dules th|at it fi|
|00006370| 6e 64 73 2e 20 59 6f 75 | 20 63 61 6e 20 70 75 74 |nds. You| can put|
|00006380| 20 61 6c 6c 20 73 6f 72 | 74 73 20 6f 66 20 74 68 | all sor|ts of th|
|00006390| 69 6e 67 73 20 69 6e 20 | 74 68 65 00 00 00 18 ca |ings in |the.....|
|000063a0| 00 09 00 39 c2 64 69 72 | 65 63 74 6f 72 79 20 61 |...9.dir|ectory a|
|000063b0| 6e 64 20 6e 6f 74 20 77 | 6f 72 72 79 20 61 62 6f |nd not w|orry abo|
|000063c0| 75 74 20 67 65 74 74 69 | 6e 67 20 67 61 72 62 61 |ut getti|ng garba|
|000063d0| 67 65 20 47 66 78 43 6f | 64 65 63 73 2e 00 00 00 |ge GfxCo|decs....|
|000063e0| 18 f1 00 24 00 4f c2 4f | 66 20 70 61 72 74 69 63 |...$.O.O|f partic|
|000063f0| 75 6c 61 72 20 69 6e 74 | 65 72 65 73 74 20 69 73 |ular int|erest is|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.